pub struct Model { /* private fields */ }

Implementations

Set hyperparameters alpha and beta of the external scorer

Enable decoding using an external scorer

Get sample rate expected by a model

Get beam width value the model is currently configured to use

Set beam width value used by the model

Disable decoding using an external scorer

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.

Perform speech-to-text using the model, getting extended metadata

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

The num_transcripts param contains the maximum number of CandidateTranscripts to return. The actually returned number might be smaller.

Set up a state for streaming inference

Load a DeepSpeech model from the specified model file path

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.