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

Function pcm_payload

perro_source/audio_stack/perro_pawdio/src/mic.rs:251–257  ·  view source on GitHub ↗
(samples: &[i16])

Source from the content-addressed store, hash-verified

249 self.samples
250 .iter()
251 .map(|sample| *sample as f32 / i16::MAX as f32)
252 .collect()
253 }
254
255 pub fn denoised(&self, settings: MicDenoiseSettings) -> Self {
256 if !settings.enabled {
257 return self.clone();
258 }
259 let mut state = MicDenoiseState::new(settings, self.sample_rate);
260 let samples = self

Callers 1

packMethod · 0.85

Calls 1

lenMethod · 0.45

Tested by

no test coverage detected