[−][src]Struct rsnowboy::SnowboyVad
Methods
impl SnowboyVad
[src]
pub fn new<S>(resource_filename: S) -> Self where
S: AsRef<str>,
[src]
S: AsRef<str>,
pub fn reset(&self) -> bool
[src]
pub fn run_char(&self, data: *const c_char) -> i32
[src]
pub fn run_float_array(
&self,
data: *const f32,
array_length: c_int,
is_end: bool
) -> i32
[src]
&self,
data: *const f32,
array_length: c_int,
is_end: bool
) -> i32
pub fn run_short_array(
&self,
data: *const i16,
array_length: c_int,
is_end: bool
) -> i32
[src]
&self,
data: *const i16,
array_length: c_int,
is_end: bool
) -> i32
pub fn run_integer_array(
&self,
data: *const i32,
array_length: c_int,
is_end: bool
) -> i32
[src]
&self,
data: *const i32,
array_length: c_int,
is_end: bool
) -> i32
pub fn set_audio_gain(&self, audio_gain: f32)
[src]
pub fn apply_frontend(&self, apply_frontend: bool)
[src]
pub fn sample_rate(&self) -> i32
[src]
pub fn num_channels(&self) -> i32
[src]
pub fn bits_per_sample(&self) -> i32
[src]
pub fn destroy(&self)
[src]
Trait Implementations
impl Copy for SnowboyVad
[src]
impl Clone for SnowboyVad
[src]
fn clone(&self) -> SnowboyVad
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for SnowboyVad
[src]
Auto Trait Implementations
impl !Send for SnowboyVad
impl !Sync for SnowboyVad
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,