FreeSWITCH API Documentation  1.7.0
Data Fields
switch_asr_interface Struct Reference

Abstract interface to an asr module. More...

#include <switch_module_interfaces.h>

+ Collaboration diagram for switch_asr_interface:

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_get_result_headers )(switch_asr_handle_t *ah, switch_event_t **headers, 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
 
struct 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 404 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

Definition at line 422 of file switch_module_interfaces.h.

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

function to close the asr interface

Definition at line 414 of file switch_module_interfaces.h.

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

function to disable all grammars to the asr interface

Definition at line 442 of file switch_module_interfaces.h.

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

Definition at line 440 of file switch_module_interfaces.h.

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

Definition at line 438 of file switch_module_interfaces.h.

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

Definition at line 416 of file switch_module_interfaces.h.

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

Definition at line 444 of file switch_module_interfaces.h.

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

Definition at line 431 of file switch_module_interfaces.h.

switch_status_t(* switch_asr_interface::asr_get_result_headers)(switch_asr_handle_t *ah, switch_event_t **headers, switch_asr_flag_t *flags)

function to read result headers from the ASR

Definition at line 426 of file switch_module_interfaces.h.

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

Definition at line 424 of file switch_module_interfaces.h.

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

Definition at line 410 of file switch_module_interfaces.h.

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

Definition at line 430 of file switch_module_interfaces.h.

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

Definition at line 408 of file switch_module_interfaces.h.

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

function to pause the ASR

Definition at line 420 of file switch_module_interfaces.h.

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

function to resume the ASR

Definition at line 418 of file switch_module_interfaces.h.

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

function to start ASR input timers

Definition at line 428 of file switch_module_interfaces.h.

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

Definition at line 429 of file switch_module_interfaces.h.

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

Definition at line 412 of file switch_module_interfaces.h.

const char* switch_asr_interface::interface_name

the name of the interface

Definition at line 406 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
switch_loadable_module_interface_t* switch_asr_interface::parent

Definition at line 435 of file switch_module_interfaces.h.

switch_mutex_t* switch_asr_interface::reflock

Definition at line 434 of file switch_module_interfaces.h.

int switch_asr_interface::refs

Definition at line 433 of file switch_module_interfaces.h.

switch_thread_rwlock_t* switch_asr_interface::rwlock

Definition at line 432 of file switch_module_interfaces.h.

Referenced by switch_loadable_module_unprocess().


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