Trait voice_activity_detector::Sample
source · pub trait Sample: Copy + Default + Sized {
// Required method
fn to_f32(self) -> f32;
}
Expand description
A single sample of Linear Pulse Code Modulation (LPCM) encoded audio.
Integers are between a range of -32768 to 32768. Floats are between -1.0 and 1.0.
Required Methods§
Object Safety§
This trait is not object safe.