pub struct AudioDataStream {
    pub handle: SmartHandle<SPXAUDIOSTREAMHANDLE>,
    pub properties: PropertyCollection,
}
Expand description

AudioDataStream represents audio data retrieved either from file or result of speech synthesis. Represents convenient option for manipulating and storing of syntehtized audio data Added in version 1.17.0

Fields

handle: SmartHandle<SPXAUDIOSTREAMHANDLE>properties: PropertyCollection

Implementations

Read reads a chunk of the audio data stream and fill it to given buffer. It returns size of data filled to the buffer and any write error encountered.

ReadAt reads a chunk of the audio data stream and fill it to given buffer, at specified offset. It returns size of data filled to the buffer and any write error encountered.

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.