Skip to main content

frame_voicing_score

Function frame_voicing_score 

Source
pub fn frame_voicing_score(frame: &[f32], noise_floor: f32) -> f32
Expand description

Fused voice-activity confidence in [0, 1] for one frame.

0.0 means “at/below the noise floor” (silence — never voiced). Values grow with how far the frame clears the floor (energy cue) and are scaled up by spectral structure (low flatness) and a plausible zero-crossing rate. This is the scored variant; frame_is_voiced thresholds it.

Zero-heap: uses fixed stack scratch for the optional FFT cue.