Skip to main content

transcribe

Function transcribe 

Source
pub fn transcribe(
    model_path: impl AsRef<Path>,
    pcm: &[f32],
    options: &RunOptions,
) -> Result<Transcript>
Expand description

Convenience: load a model, transcribe one PCM buffer, and return the result.

For repeated transcription, hold a Session instead of paying model load on every call.