pub struct PullAudioInputStream {
    pub handle: SmartHandle<SPXAUDIOSTREAMHANDLE>,
    /* private fields */
}
Expand description

PullAudioInputStream represents audio input stream with audio data pulled (read) by Speech Recognizer when needed via read method. Passing audio input is controlled by receiver.

Fields

handle: SmartHandle<SPXAUDIOSTREAMHANDLE>

Implementations

Registers callbacks for speech recognizer. Callback for pull read and close are mandatory. Optionally (register_get_prop_cb = true) get property callback can be registered as well.

Trait Implementations

Formats the value using the given formatter. 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.