Struct deepspeech::Model

source ·
pub struct Model { /* private fields */ }

Implementations§

Load a DeepSpeech model from the specified model and alphabet file paths

Load a KenLM language model from a file and enable decoding using beam scoring

Perform speech-to-text using the model

The input buffer must consist of mono 16-bit samples. The sample rate is not freely chooseable but a property of the model files.

Set up a state for streaming inference

Trait Implementations§

Executes the destructor for this type. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.