Skip to main content

synthesize_reference_tone

Function synthesize_reference_tone 

Source
pub fn synthesize_reference_tone(
    consent: VoiceConsent,
    freq_hz: f32,
    sample_rate: u32,
    frames: usize,
    seed: u64,
    out: &mut [f32],
) -> Result<SynthReceipt, AudioError>
Expand description

Synthesize a simple multi-partial tone into mono f32. Fails closed if consent denies synthesis or is revoked.