Skip to main content

AudioInput

Trait AudioInput 

Source
pub trait AudioInput: Send {
    // Required method
    fn next_chunk(&mut self) -> Option<AudioChunk>;
}
Expand description

Source of 16 kHz mono signed-PCM audio for transcription.

Distinct from crate::voice::AudioSource (which is !Send, f32, and variable-rate) — see the module docs and ADR-0032 for why the seam splits here.

Required Methods§

Source

fn next_chunk(&mut self) -> Option<AudioChunk>

Returns the next chunk of samples, or None when the input is exhausted. Implementations may yield chunks of any size; consumers must not rely on a particular chunk boundary.

Implementors§