pub struct PitchEstimate {
pub period_samples: f32,
pub f0_hz: f32,
pub confidence: f32,
}Expand description
Result of a pitch-estimation pass on one 20 ms frame.
Fields§
§period_samples: f32Pitch period in samples at 8 kHz. Fractional — either an integer or integer + 0.5 on the IMBE pitch grid.
f0_hz: f32Fundamental frequency in Hz (8000 / period_samples).
confidence: f32Confidence score in [0, 1], computed as 1 − E(p) at the
chosen pitch. Values above ≈0.5 typically indicate stable
voiced speech; below ≈0.05 indicates noise or silence and is
the trigger for the encoder to emit AMBE_SILENCE.
Trait Implementations§
Source§impl Clone for PitchEstimate
impl Clone for PitchEstimate
Source§fn clone(&self) -> PitchEstimate
fn clone(&self) -> PitchEstimate
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 PitchEstimate
impl Debug for PitchEstimate
Source§impl PartialEq for PitchEstimate
impl PartialEq for PitchEstimate
impl Copy for PitchEstimate
impl StructuralPartialEq for PitchEstimate
Auto Trait Implementations§
impl Freeze for PitchEstimate
impl RefUnwindSafe for PitchEstimate
impl Send for PitchEstimate
impl Sync for PitchEstimate
impl Unpin for PitchEstimate
impl UnwindSafe for PitchEstimate
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