MCPcopy Create free account
hub / github.com/PerroEngine/Perro / trim_samples

Function trim_samples

perro_source/audio_stack/perro_pawdio/src/mic.rs:778–787  ·  view source on GitHub ↗
(samples: &mut Vec<i16>, stream_cursor: &Arc<Mutex<usize>>, max_samples: usize)

Source from the content-addressed store, hash-verified

776 pub fn voice() -> Self {
777 Self {
778 enabled: true,
779 noise_floor: 0.02,
780 reduction: 0.75,
781 high_pass: true,
782 high_pass_hz: 90.0,
783 }
784 }
785
786 /// Aggressive cleanup for noisy rooms / laptop mics: deeper gate and a
787 /// higher rumble cut than [`Self::voice`].
788 pub fn strong() -> Self {
789 Self {
790 enabled: true,

Callers 3

push_i16Function · 0.85
push_f32Function · 0.85
push_u16Function · 0.85

Calls 1

lenMethod · 0.45

Tested by

no test coverage detected