Skip to main content

Transcriber

Trait Transcriber 

Source
pub trait Transcriber: Send + Sync {
    // Required method
    fn transcribe(
        &self,
        audio: Box<dyn AudioInput>,
    ) -> Result<Box<dyn EventStream>>;
}
Expand description

Speech-to-text backend.

Send + Sync so a single transcriber can be shared across worker threads (e.g., one model, many concurrent inputs). Backends that hold non-thread-safe handles internally wrap them in Mutex.

Required Methods§

Source

fn transcribe(&self, audio: Box<dyn AudioInput>) -> Result<Box<dyn EventStream>>

Consumes an audio input and returns the resulting event stream.

Implementors§