Main Page | Modules | Class Hierarchy | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

switch_speech_interface Struct Reference

#include <switch_module_interfaces.h>

Collaboration diagram for switch_speech_interface:

Collaboration graph
[legend]

Detailed Description

Abstract interface to a speech module.


Data Fields

const char * interface_name
switch_status_t(* speech_open )(switch_speech_handle_t *sh, const char *voice_name, int rate, switch_speech_flag_t *flags)
switch_status_t(* speech_close )(switch_speech_handle_t *, switch_speech_flag_t *flags)
switch_status_t(* speech_feed_tts )(switch_speech_handle_t *sh, char *text, switch_speech_flag_t *flags)
switch_status_t(* speech_read_tts )(switch_speech_handle_t *sh, void *data, switch_size_t *datalen, uint32_t *rate, switch_speech_flag_t *flags)
void(* speech_flush_tts )(switch_speech_handle_t *sh)
void(* speech_text_param_tts )(switch_speech_handle_t *sh, char *param, const char *val)
void(* speech_numeric_param_tts )(switch_speech_handle_t *sh, char *param, int val)
void(* speech_float_param_tts )(switch_speech_handle_t *sh, char *param, double val)
switch_thread_rwlock_trwlock
switch_speech_interfacenext


Field Documentation

const char* switch_speech_interface::interface_name
 

the name of the interface

struct switch_speech_interface* switch_speech_interface::next
 

switch_thread_rwlock_t* switch_speech_interface::rwlock
 

switch_status_t(* switch_speech_interface::speech_close)(switch_speech_handle_t *, switch_speech_flag_t *flags)
 

function to close the speech interface

switch_status_t(* switch_speech_interface::speech_feed_tts)(switch_speech_handle_t *sh, char *text, switch_speech_flag_t *flags)
 

function to feed audio to the ASR

void(* switch_speech_interface::speech_float_param_tts)(switch_speech_handle_t *sh, char *param, double val)
 

void(* switch_speech_interface::speech_flush_tts)(switch_speech_handle_t *sh)
 

void(* switch_speech_interface::speech_numeric_param_tts)(switch_speech_handle_t *sh, char *param, int val)
 

switch_status_t(* switch_speech_interface::speech_open)(switch_speech_handle_t *sh, const char *voice_name, int rate, switch_speech_flag_t *flags)
 

function to open the speech interface

switch_status_t(* switch_speech_interface::speech_read_tts)(switch_speech_handle_t *sh, void *data, switch_size_t *datalen, uint32_t *rate, switch_speech_flag_t *flags)
 

function to read audio from the TTS

void(* switch_speech_interface::speech_text_param_tts)(switch_speech_handle_t *sh, char *param, const char *val)
 


The documentation for this struct was generated from the following file:
Generated on Fri Oct 10 11:24:18 2008 for FreeSWITCH by  doxygen 1.3.9.1