Struct chlorate::SodaAudioLevelInfo[][src]

pub struct SodaAudioLevelInfo {
    pub rms: Option<f32>,
    pub audio_level: Option<f32>,
    pub audio_time_usec: Option<i64>,
}

Fields

rms: Option<f32>

Low-pass filtered RMS in range 0..1.

audio_level: Option<f32>

Speech likelihood score from in range 0..1.

audio_time_usec: Option<i64>

Amount of audio seen from start of SODA session until an audio level event. This value is only set when audio_level is set.

Implementations

impl SodaAudioLevelInfo[src]

pub fn rms(&self) -> f32[src]

Returns the value of rms, or the default value if rms is unset.

pub fn audio_level(&self) -> f32[src]

Returns the value of audio_level, or the default value if audio_level is unset.

pub fn audio_time_usec(&self) -> i64[src]

Returns the value of audio_time_usec, or the default value if audio_time_usec is unset.

Trait Implementations

impl Clone for SodaAudioLevelInfo[src]

impl Debug for SodaAudioLevelInfo[src]

impl Default for SodaAudioLevelInfo[src]

impl Message for SodaAudioLevelInfo[src]

impl PartialEq<SodaAudioLevelInfo> for SodaAudioLevelInfo[src]

impl StructuralPartialEq for SodaAudioLevelInfo[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

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

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

type Owned = T

The resulting type after obtaining ownership.

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.