#[repr(C)]pub struct switch_speech_handle {Show 19 fields
pub speech_interface: *mut switch_speech_interface_t,
pub flags: u32,
pub name: *mut c_char,
pub rate: u32,
pub speed: u32,
pub samples: u32,
pub channels: u32,
pub real_channels: u32,
pub voice: [c_char; 80],
pub engine: *mut c_char,
pub param: *mut c_char,
pub memory_pool: *mut switch_memory_pool_t,
pub resampler: *mut switch_audio_resampler_t,
pub buffer: *mut switch_buffer_t,
pub dbuf: *mut switch_byte_t,
pub dbuflen: switch_size_t,
pub samplerate: u32,
pub native_rate: u32,
pub private_info: *mut c_void,
}Expand description
an abstract representation of a tts speech interface.
Fields§
§speech_interface: *mut switch_speech_interface_tthe interface of the module that implemented the current speech interface
flags: u32flags to control behaviour
name: *mut c_charThe Name
rate: u32The Rate
speed: u32§samples: u32§channels: u32§real_channels: u32§voice: [c_char; 80]§engine: *mut c_char§param: *mut c_charmodule specific param
memory_pool: *mut switch_memory_pool_tthe handle’s memory pool
resampler: *mut switch_audio_resampler_t§buffer: *mut switch_buffer_t§dbuf: *mut switch_byte_t§dbuflen: switch_size_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_speech_handle
impl Clone for switch_speech_handle
Source§fn clone(&self) -> switch_speech_handle
fn clone(&self) -> switch_speech_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_speech_handle
impl Debug for switch_speech_handle
impl Copy for switch_speech_handle
Auto Trait Implementations§
impl Freeze for switch_speech_handle
impl RefUnwindSafe for switch_speech_handle
impl !Send for switch_speech_handle
impl !Sync for switch_speech_handle
impl Unpin for switch_speech_handle
impl UnwindSafe for switch_speech_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