Realm

oa::audio::noise_like

Generate deterministic Philox noise matching input’s shape, rate, and layout. The same (seed, distribution, amplitude) triple always produces the same samples, which keeps augmentation recipes replayable across runs and languages. Errors Returns an error when amplitude is negative or non-finite, or noise generation/allocation fails.

FnRust public API

Function Documentation

pub fn noise_like( input: &Audio, distribution: NoiseDistribution, amplitude: f32, seed: u64 ) -> Result<Audio>
Generate deterministic Philox noise matching input’s shape, rate, and layout. The same (seed, distribution, amplitude) triple always produces the same samples, which keeps augmentation recipes replayable across runs and languages. Errors Returns an error when amplitude is negative or non-finite, or noise generation/allocation fails.