Skip to main content

create_default_transcriber

Function create_default_transcriber 

Source
pub fn create_default_transcriber(
    opts: &VoiceOpts,
) -> Result<Box<dyn Transcriber>>
Expand description

Constructs the appropriate Transcriber given opts and the process environment.

Errors only on an unrecognised backend name. Backend-specific construction errors (missing model file, failed initialisation) bubble up from the backend’s own new.