pub struct Stream { /* private fields */ }

Implementations

Feed audio samples to the stream

The input buffer must consist of mono 16-bit samples.

Decodes the intermediate state of what has been spoken up until now

Note that as of DeepSpeech version 0.2.0, this function is non-trivial as the decoder can’t do streaming yet.

Deallocates the stream and returns the decoded text

Deallocates the stream and returns the extended metadata

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

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.