RTS API Documentation  1.10.11
Data Fields
switch_speech_interface Struct Reference

Abstract interface to a speech module. More...

#include <switch_module_interfaces.h>

+ Collaboration diagram for switch_speech_interface:

Data Fields

const char * interface_name
 
switch_status_t(* speech_open )(switch_speech_handle_t *sh, const char *voice_name, int rate, int channels, 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, 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
 
int refs
 
switch_mutex_treflock
 
switch_loadable_module_interface_tparent
 
struct switch_speech_interfacenext
 

Detailed Description

Abstract interface to a speech module.

Definition at line 463 of file switch_module_interfaces.h.

Field Documentation

◆ interface_name

const char* switch_speech_interface::interface_name

the name of the interface

Definition at line 465 of file switch_module_interfaces.h.

Referenced by switch_loadable_module_process(), and switch_loadable_module_unprocess().

◆ next

struct switch_speech_interface* switch_speech_interface::next

◆ parent

switch_loadable_module_interface_t* switch_speech_interface::parent

Definition at line 481 of file switch_module_interfaces.h.

◆ reflock

switch_mutex_t* switch_speech_interface::reflock

Definition at line 480 of file switch_module_interfaces.h.

◆ refs

int switch_speech_interface::refs

Definition at line 479 of file switch_module_interfaces.h.

◆ rwlock

switch_thread_rwlock_t* switch_speech_interface::rwlock

Definition at line 478 of file switch_module_interfaces.h.

Referenced by switch_loadable_module_unprocess().

◆ speech_close

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

function to close the speech interface

Definition at line 469 of file switch_module_interfaces.h.

Referenced by switch_core_speech_close().

◆ speech_feed_tts

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

Definition at line 471 of file switch_module_interfaces.h.

Referenced by switch_core_speech_feed_tts().

◆ speech_float_param_tts

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

Definition at line 477 of file switch_module_interfaces.h.

Referenced by switch_core_speech_float_param_tts().

◆ speech_flush_tts

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

Definition at line 474 of file switch_module_interfaces.h.

Referenced by switch_core_speech_flush_tts().

◆ speech_numeric_param_tts

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

Definition at line 476 of file switch_module_interfaces.h.

Referenced by switch_core_speech_numeric_param_tts().

◆ speech_open

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

function to open the speech interface

Definition at line 467 of file switch_module_interfaces.h.

Referenced by switch_core_speech_open().

◆ speech_read_tts

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

function to read audio from the TTS

Definition at line 473 of file switch_module_interfaces.h.

Referenced by switch_core_speech_read_tts().

◆ speech_text_param_tts

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

Definition at line 475 of file switch_module_interfaces.h.

Referenced by switch_core_speech_text_param_tts().


The documentation for this struct was generated from the following file: