Struct deepspeech::Stream

source ·
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

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.