Enum MicrosoftOutputFormat

Source
pub enum MicrosoftOutputFormat {
Show 35 variants Amr_Wb_16000hz, Audio_16khz_16bit_32kbps_Mono_Opus, Audio_16khz_32kbitrate_Mono_Mp3, Audio_16khz_64kbitrate_Mono_Mp3, Audio_16khz_128kbitrate_Mono_Mp3, Audio_24khz_16bit_24kbps_Mono_Opus, Audio_24khz_16bit_48kbps_Mono_Opus, Audio_24khz_48kbitrate_Mono_Mp3, Audio_24khz_96kbitrate_Mono_Mp3, Audio_24khz_160kbitrate_Mono_Mp3, Audio_48khz_96kbitrate_Mono_Mp3, Audio_48khz_192kbitrate_Mono_Mp3, Ogg_16khz_16bit_Mono_Opus, Ogg_24khz_16bit_Mono_Opus, Ogg_48khz_16bit_Mono_Opus, Raw_8khz_8bit_Mono_Alaw, Raw_8khz_8bit_Mono_Mulaw, Raw_8khz_16bit_Mono_Pcm, Raw_16khz_16bit_Mono_Pcm, Raw_16khz_16bit_Mono_Truesilk, Raw_22050hz_16bit_Mono_Pcm, Raw_24khz_16bit_Mono_Pcm, Raw_24khz_16bit_Mono_Truesilk, Raw_44100hz_16bit_Mono_Pcm, Raw_48khz_16bit_Mono_Pcm, Webm_16khz_16bit_Mono_Opus, Webm_24khz_16bit_24kbps_Mono_Opus, Webm_24khz_16bit_Mono_Opus, Riff_8khz_8bit_Mono_Alaw, Riff_8khz_8bit_Mono_Mulaw, Riff_8khz_16bit_Mono_Pcm, Riff_22050hz_16bit_Mono_Pcm, Riff_24khz_16bit_Mono_Pcm, Riff_44100hz_16bit_Mono_Pcm, Riff_48khz_16bit_Mono_Pcm,
}
Expand description

Microsoft output format definitions

The supported streaming and non-streaming audio formats are sent in each request as the X-Microsoft-OutputFormat header. Each format incorporates a bit rate and encoding type. The Speech service supports 48-kHz, 24-kHz, 16-kHz, and 8-kHz audio outputs. Each prebuilt neural voice model is available at 24kHz and high-fidelity 48kHz.

If you select 48kHz output format, the high-fidelity voice model with 48kHz will be invoked accordingly. The sample rates other than 24kHz and 48kHz can be obtained through upsampling or downsampling when synthesizing, for example, 44.1kHz is downsampled from 48kHz.

If your selected voice and output format have different bit rates, the audio is resampled as necessary. You can decode the ogg-24khz-16bit-mono-opus format by using the Opus codec.

Source: https://learn.microsoft.com/en-us/azure/cognitive-services/speech-service/rest-text-to-speech

Variants§

§

Amr_Wb_16000hz

Streaming output format amr-wb-16000hz

§

Audio_16khz_16bit_32kbps_Mono_Opus

Streaming output format audio-16khz-16bit-32kbps-mono-opus

§

Audio_16khz_32kbitrate_Mono_Mp3

Streaming output format audio-16khz-32kbitrate-mono-mp3

§

Audio_16khz_64kbitrate_Mono_Mp3

Streaming output format audio-16khz-64kbitrate-mono-mp3

§

Audio_16khz_128kbitrate_Mono_Mp3

Streaming output format audio-16khz-128kbitrate-mono-mp3

§

Audio_24khz_16bit_24kbps_Mono_Opus

Streaming output format audio-24khz-16bit-24kbps-mono-opus

§

Audio_24khz_16bit_48kbps_Mono_Opus

Streaming output format audio-24khz-16bit-48kbps-mono-opus

§

Audio_24khz_48kbitrate_Mono_Mp3

Streaming output format audio-24khz-48kbitrate-mono-mp3

§

Audio_24khz_96kbitrate_Mono_Mp3

Streaming output format audio-24khz-96kbitrate-mono-mp3

§

Audio_24khz_160kbitrate_Mono_Mp3

Streaming output format audio-24khz-160kbitrate-mono-mp3

§

Audio_48khz_96kbitrate_Mono_Mp3

Streaming output format audio-48khz-96kbitrate-mono-mp3

§

Audio_48khz_192kbitrate_Mono_Mp3

Streaming output format audio-48khz-192kbitrate-mono-mp3

§

Ogg_16khz_16bit_Mono_Opus

Streaming output format ogg-16khz-16bit-mono-opus

§

Ogg_24khz_16bit_Mono_Opus

Streaming output format ogg-24khz-16bit-mono-opus

§

Ogg_48khz_16bit_Mono_Opus

Streaming output format ogg-48khz-16bit-mono-opus

§

Raw_8khz_8bit_Mono_Alaw

Streaming output format raw-8khz-8bit-mono-alaw

§

Raw_8khz_8bit_Mono_Mulaw

Streaming output format raw-8khz-8bit-mono-mulaw

§

Raw_8khz_16bit_Mono_Pcm

Streaming output format raw-8khz-16bit-mono-pcm

§

Raw_16khz_16bit_Mono_Pcm

Streaming output format raw-16khz-16bit-mono-pcm

§

Raw_16khz_16bit_Mono_Truesilk

Streaming output format raw-16khz-16bit-mono-truesilk

§

Raw_22050hz_16bit_Mono_Pcm

Streaming output format raw-22050hz-16bit-mono-pcm

§

Raw_24khz_16bit_Mono_Pcm

Streaming output format raw-24khz-16bit-mono-pcm

§

Raw_24khz_16bit_Mono_Truesilk

Streaming output format raw-24khz-16bit-mono-truesilk

§

Raw_44100hz_16bit_Mono_Pcm

Streaming output format raw-44100hz-16bit-mono-pcm

§

Raw_48khz_16bit_Mono_Pcm

Streaming output format raw-48khz-16bit-mono-pcm

§

Webm_16khz_16bit_Mono_Opus

Streaming output format webm-16khz-16bit-mono-opus

§

Webm_24khz_16bit_24kbps_Mono_Opus

Streaming output format webm-24khz-16bit-24kbps-mono-opus

§

Webm_24khz_16bit_Mono_Opus

Streaming output format webm-24khz-16bit-mono-opus

§

Riff_8khz_8bit_Mono_Alaw

Non-streaming output format riff-8khz-8bit-mono-alaw

§

Riff_8khz_8bit_Mono_Mulaw

Non-streaming output format riff-8khz-8bit-mono-mulaw

§

Riff_8khz_16bit_Mono_Pcm

Non-streaming output format riff-8khz-16bit-mono-pcm

§

Riff_22050hz_16bit_Mono_Pcm

Non-streaming output format riff-22050hz-16bit-mono-pcm

§

Riff_24khz_16bit_Mono_Pcm

Non-streaming output format riff-24khz-16bit-mono-pcm

§

Riff_44100hz_16bit_Mono_Pcm

Non-streaming output format riff-44100hz-16bit-mono-pcm

§

Riff_48khz_16bit_Mono_Pcm

Non-streaming output format riff-48khz-16bit-mono-pcm

Trait Implementations§

Source§

impl Clone for MicrosoftOutputFormat

Source§

fn clone(&self) -> MicrosoftOutputFormat

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for MicrosoftOutputFormat

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Into<HeaderValue> for MicrosoftOutputFormat

Source§

fn into(self) -> HeaderValue

Converts this type into the (usually inferred) input type.
Source§

impl Into<String> for MicrosoftOutputFormat

Source§

fn into(self) -> String

Converts this type into the (usually inferred) input type.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> MaybeSendSync for T