Skip to main content

load_models

Function load_models 

Source
fn load_models(
    asr_path: &Path,
    cfg: &Config,
) -> Result<Loaded, (PathBuf, String)>
Expand description

Load the recognition model, and the normalizer when one is configured.

Failure is the parts of Error::ModelLoad rather than the error, because the queue drain and every Engine::wait_ready caller each need their own copy.