Type Alias switch_speech_interface_t

Source
pub type switch_speech_interface_t = switch_speech_interface;
Expand description

\brief Abstract interface to a speech module

Aliased Type§

#[repr(C)]
pub struct switch_speech_interface_t {
Show 14 fields pub interface_name: *const i8, pub speech_open: Option<unsafe extern "C" fn(*mut switch_speech_handle, *const i8, i32, i32, *mut u32) -> switch_status_t>, pub speech_close: Option<unsafe extern "C" fn(*mut switch_speech_handle, *mut u32) -> switch_status_t>, pub speech_feed_tts: Option<unsafe extern "C" fn(*mut switch_speech_handle, *mut i8, *mut u32) -> switch_status_t>, pub speech_read_tts: Option<unsafe extern "C" fn(*mut switch_speech_handle, *mut c_void, *mut usize, *mut u32) -> switch_status_t>, pub speech_flush_tts: Option<unsafe extern "C" fn(*mut switch_speech_handle)>, pub speech_text_param_tts: Option<unsafe extern "C" fn(*mut switch_speech_handle, *mut i8, *const i8)>, pub speech_numeric_param_tts: Option<unsafe extern "C" fn(*mut switch_speech_handle, *mut i8, i32)>, pub speech_float_param_tts: Option<unsafe extern "C" fn(*mut switch_speech_handle, *mut i8, f64)>, pub rwlock: *mut fspr_thread_rwlock_t, pub refs: i32, pub reflock: *mut fspr_thread_mutex_t, pub parent: *mut switch_loadable_module_interface, pub next: *mut switch_speech_interface,
}

Fields§

§interface_name: *const i8

the name of the interface

§speech_open: Option<unsafe extern "C" fn(*mut switch_speech_handle, *const i8, i32, i32, *mut u32) -> switch_status_t>

function to open the speech interface

§speech_close: Option<unsafe extern "C" fn(*mut switch_speech_handle, *mut u32) -> switch_status_t>

function to close the speech interface

§speech_feed_tts: Option<unsafe extern "C" fn(*mut switch_speech_handle, *mut i8, *mut u32) -> switch_status_t>

function to feed audio to the ASR

§speech_read_tts: Option<unsafe extern "C" fn(*mut switch_speech_handle, *mut c_void, *mut usize, *mut u32) -> switch_status_t>

function to read audio from the TTS

§speech_flush_tts: Option<unsafe extern "C" fn(*mut switch_speech_handle)>§speech_text_param_tts: Option<unsafe extern "C" fn(*mut switch_speech_handle, *mut i8, *const i8)>§speech_numeric_param_tts: Option<unsafe extern "C" fn(*mut switch_speech_handle, *mut i8, i32)>§speech_float_param_tts: Option<unsafe extern "C" fn(*mut switch_speech_handle, *mut i8, f64)>§rwlock: *mut fspr_thread_rwlock_t§refs: i32§reflock: *mut fspr_thread_mutex_t§parent: *mut switch_loadable_module_interface§next: *mut switch_speech_interface