pub struct AudioStreamFormat {
    pub handle: SmartHandle<SPXAUDIOSTREAMFORMATHANDLE>,
}
Expand description

AudioStreamFormat represents the audio stream format used for custom audio input configurations.

Fields

handle: SmartHandle<SPXAUDIOSTREAMFORMATHANDLE>

Smart handle wrapping underlying SPXAUDIOSTREAMFORMATHANDLE

Implementations

GetWaveFormatPCM creates an audio stream format object with the specified PCM waveformat characteristics. Note: Currently, only WAV / PCM with 16-bit samples, 16 kHz sample rate, and a single channel (Mono) is supported. When used with Conversation Transcription, eight channels are supported.

GetDefaultInputFormat creates an audio stream format object representing the default audio stream format (16 kHz, 16 bit, mono PCM).

GetDefaultOutputFormat creates an audio stream format object representing the default audio stream format (16 kHz, 16 bit, mono PCM).

GetCompressedFormat creates an audio stream format object with the specified compressed audio container format, to be used as input format.

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.