[][src]Struct rsnowboy::SnowboyDetect

pub struct SnowboyDetect { /* fields omitted */ }

Methods

impl SnowboyDetect[src]

pub fn new<S>(resource_filename: S, model_str: S) -> Self where
    S: AsRef<str>, 
[src]

pub fn reset(&self) -> bool[src]

pub fn run_char_detection(&self, data: *const c_char, is_end: bool) -> i32[src]

pub fn run_float_array_detection(
    &self,
    data: *const f32,
    array_length: c_int,
    is_end: bool
) -> i32
[src]

pub fn run_short_array_detection(
    &self,
    data: *const i16,
    array_length: c_int,
    is_end: bool
) -> i32
[src]

pub fn run_integer_array_detection(
    &self,
    data: *const i32,
    array_length: c_int,
    is_end: bool
) -> i32
[src]

pub fn set_sensitivity<S>(&self, sensitivity_str: S) where
    S: AsRef<str>, 
[src]

pub fn get_sensitivity(&self) -> String[src]

pub fn set_audio_gain(&self, audio_gain: f32)[src]

pub fn update_model(&self)[src]

pub fn num_hotwords(&self) -> i32[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 SnowboyDetect[src]

impl Sync for SnowboyDetect[src]

impl Clone for SnowboyDetect[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Send for SnowboyDetect[src]

impl Debug for SnowboyDetect[src]

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]