switch_asr_interface Struct Reference

Abstract interface to an asr module. More...

#include <switch_module_interfaces.h>

Collaboration diagram for switch_asr_interface:

[legend]

Data Fields

const char * interface_name
switch_status_t(* asr_open )(switch_asr_handle_t *ah, const char *codec, int rate, const char *dest, switch_asr_flag_t *flags)
switch_status_t(* asr_load_grammar )(switch_asr_handle_t *ah, const char *grammar, const char *name)
switch_status_t(* asr_unload_grammar )(switch_asr_handle_t *ah, const char *name)
switch_status_t(* asr_close )(switch_asr_handle_t *ah, switch_asr_flag_t *flags)
switch_status_t(* asr_feed )(switch_asr_handle_t *ah, void *data, unsigned int len, switch_asr_flag_t *flags)
switch_status_t(* asr_resume )(switch_asr_handle_t *ah)
switch_status_t(* asr_pause )(switch_asr_handle_t *ah)
switch_status_t(* asr_check_results )(switch_asr_handle_t *ah, switch_asr_flag_t *flags)
switch_status_t(* asr_get_results )(switch_asr_handle_t *ah, char **xmlstr, switch_asr_flag_t *flags)
switch_status_t(* asr_start_input_timers )(switch_asr_handle_t *ah)
void(* asr_text_param )(switch_asr_handle_t *ah, char *param, const char *val)
void(* asr_numeric_param )(switch_asr_handle_t *ah, char *param, int val)
void(* asr_float_param )(switch_asr_handle_t *ah, char *param, double val)
switch_thread_rwlock_trwlock
int refs
switch_mutex_treflock
switch_loadable_module_interface_tparent
switch_asr_interfacenext
switch_status_t(* asr_enable_grammar )(switch_asr_handle_t *ah, const char *name)
switch_status_t(* asr_disable_grammar )(switch_asr_handle_t *ah, const char *name)
switch_status_t(* asr_disable_all_grammars )(switch_asr_handle_t *ah)
switch_status_t(* asr_feed_dtmf )(switch_asr_handle_t *ah, const switch_dtmf_t *dtmf, switch_asr_flag_t *flags)

Detailed Description

Abstract interface to an asr module.

Definition at line 349 of file switch_module_interfaces.h.


Field Documentation

switch_status_t(* switch_asr_interface::asr_check_results)(switch_asr_handle_t *ah, switch_asr_flag_t *flags)

function to read results from the ASR

switch_status_t(* switch_asr_interface::asr_close)(switch_asr_handle_t *ah, switch_asr_flag_t *flags)

function to close the asr interface

switch_status_t(* switch_asr_interface::asr_disable_all_grammars)(switch_asr_handle_t *ah)

function to disable all grammars to the asr interface

switch_status_t(* switch_asr_interface::asr_disable_grammar)(switch_asr_handle_t *ah, const char *name)

function to disable a grammar to the asr interface

switch_status_t(* switch_asr_interface::asr_enable_grammar)(switch_asr_handle_t *ah, const char *name)

function to enable a grammar to the asr interface

switch_status_t(* switch_asr_interface::asr_feed)(switch_asr_handle_t *ah, void *data, unsigned int len, switch_asr_flag_t *flags)

function to feed audio to the ASR

switch_status_t(* switch_asr_interface::asr_feed_dtmf)(switch_asr_handle_t *ah, const switch_dtmf_t *dtmf, switch_asr_flag_t *flags)

function to feed DTMF to the ASR

void(* switch_asr_interface::asr_float_param)(switch_asr_handle_t *ah, char *param, double val)

switch_status_t(* switch_asr_interface::asr_get_results)(switch_asr_handle_t *ah, char **xmlstr, switch_asr_flag_t *flags)

function to read results from the ASR

switch_status_t(* switch_asr_interface::asr_load_grammar)(switch_asr_handle_t *ah, const char *grammar, const char *name)

function to load a grammar to the asr interface

void(* switch_asr_interface::asr_numeric_param)(switch_asr_handle_t *ah, char *param, int val)

switch_status_t(* switch_asr_interface::asr_open)(switch_asr_handle_t *ah, const char *codec, int rate, const char *dest, switch_asr_flag_t *flags)

function to open the asr interface

switch_status_t(* switch_asr_interface::asr_pause)(switch_asr_handle_t *ah)

function to pause the ASR

switch_status_t(* switch_asr_interface::asr_resume)(switch_asr_handle_t *ah)

function to resume the ASR

switch_status_t(* switch_asr_interface::asr_start_input_timers)(switch_asr_handle_t *ah)

function to start ASR input timers

void(* switch_asr_interface::asr_text_param)(switch_asr_handle_t *ah, char *param, const char *val)

switch_status_t(* switch_asr_interface::asr_unload_grammar)(switch_asr_handle_t *ah, const char *name)

function to unload a grammar to the asr interface

const char* switch_asr_interface::interface_name

the name of the interface

Definition at line 351 of file switch_module_interfaces.h.

Referenced by switch_loadable_module_process(), and switch_loadable_module_unprocess().

struct switch_asr_interface* switch_asr_interface::next

Definition at line 379 of file switch_module_interfaces.h.

Referenced by switch_loadable_module_process(), and switch_loadable_module_unprocess().

switch_loadable_module_interface_t* switch_asr_interface::parent

Definition at line 378 of file switch_module_interfaces.h.

switch_mutex_t* switch_asr_interface::reflock

Definition at line 377 of file switch_module_interfaces.h.

int switch_asr_interface::refs

Definition at line 376 of file switch_module_interfaces.h.

switch_thread_rwlock_t* switch_asr_interface::rwlock

Definition at line 375 of file switch_module_interfaces.h.

Referenced by switch_loadable_module_unprocess().


The documentation for this struct was generated from the following file:
Generated on Wed May 16 04:00:25 2012 for FreeSWITCH API Documentation by  doxygen 1.4.7