#[repr(C)]pub struct switch_asr_handle {Show 15 fields
pub asr_interface: *mut switch_asr_interface_t,
pub flags: u32,
pub name: *mut c_char,
pub codec: *mut c_char,
pub rate: u32,
pub grammar: *mut c_char,
pub param: *mut c_char,
pub memory_pool: *mut switch_memory_pool_t,
pub buffer: *mut switch_buffer_t,
pub dbuf: *mut switch_byte_t,
pub dbuflen: switch_size_t,
pub resampler: *mut switch_audio_resampler_t,
pub samplerate: u32,
pub native_rate: u32,
pub private_info: *mut c_void,
}Expand description
an abstract representation of an asr speech interface.
Fields§
§asr_interface: *mut switch_asr_interface_tthe interface of the module that implemented the current speech interface
flags: u32flags to control behaviour
name: *mut c_charThe Name
codec: *mut c_charThe Codec
rate: u32The Rate
grammar: *mut c_char§param: *mut c_charmodule specific param
memory_pool: *mut switch_memory_pool_tthe handle’s memory pool
buffer: *mut switch_buffer_t§dbuf: *mut switch_byte_t§dbuflen: switch_size_t§resampler: *mut switch_audio_resampler_t§samplerate: u32the current samplerate
native_rate: u32the current native samplerate
private_info: *mut c_voidprivate data for the format module to store handle specific info
Trait Implementations§
Source§impl Clone for switch_asr_handle
impl Clone for switch_asr_handle
Source§fn clone(&self) -> switch_asr_handle
fn clone(&self) -> switch_asr_handle
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for switch_asr_handle
impl Debug for switch_asr_handle
impl Copy for switch_asr_handle
Auto Trait Implementations§
impl Freeze for switch_asr_handle
impl RefUnwindSafe for switch_asr_handle
impl !Send for switch_asr_handle
impl !Sync for switch_asr_handle
impl Unpin for switch_asr_handle
impl UnwindSafe for switch_asr_handle
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more