pub enum AudioFormat {
Show 14 variants
AudioAlaw {
sample_rate: u16,
},
AudioBasic,
AudioFlac {
sample_rate: Option<u16>,
},
AudioL16 {
sample_rate: u16,
endianess: Option<AudioEndianness>,
},
AudioOgg {
sample_rate: Option<u16>,
},
AudioOggCodecsOpus {
sample_rate: Option<u16>,
},
AudioOggCodecsVorbis {
sample_rate: Option<u16>,
},
AudioMp3 {
sample_rate: Option<u16>,
},
AudioMpeg {
sample_rate: Option<u16>,
},
AudioMulaw {
sample_rate: u16,
},
AudioWav {
sample_rate: Option<u16>,
},
AudioWebm,
AudioWebmCodecsOpus,
AudioWebmCodecsVorbis {
sample_rate: Option<u16>,
},
}
tts
only.Expand description
The service can return audio in the following formats (MIME types):
Variants§
AudioAlaw
You must specify the rate of the audio.
AudioBasic
The service returns audio with a sampling rate of 8000 Hz.
AudioFlac
You can optionally specify the rate of the audio. The default sampling rate is 22,050 Hz.
AudioL16
You must specify the rate of the audio. You can optionally specify the endianness of the audio. The default endianness is little-endian
AudioOgg
You can optionally specify the rate of the audio. The default sampling rate is 22,050 Hz
AudioOggCodecsOpus
You can optionally specify the rate of the audio. The default sampling rate is 22,050 Hz
AudioOggCodecsVorbis
You can optionally specify the rate of the audio. The default sampling rate is 22,050 Hz
AudioMp3
You can optionally specify the rate of the audio. The default sampling rate is 22,050 Hz
AudioMpeg
You can optionally specify the rate of the audio. The default sampling rate is 22,050 Hz
AudioMulaw
You must specify the rate of the audio
AudioWav
You can optionally specify the rate of the audio. The default sampling rate is 22,050 Hz
AudioWebm
The service returns the audio in the opus codec. The service returns audio with a sampling rate of 48,000 Hz
AudioWebmCodecsOpus
The service returns audio with a sampling rate of 48,000 Hz
AudioWebmCodecsVorbis
You can optionally specify the rate of the audio. The default sampling rate is 22,050 Hz
Implementations§
Trait Implementations§
Source§impl Clone for AudioFormat
impl Clone for AudioFormat
Source§fn clone(&self) -> AudioFormat
fn clone(&self) -> AudioFormat
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Default for AudioFormat
impl Default for AudioFormat
Source§fn default() -> Self
fn default() -> Self
The default audio format: AudioOggCodecsOpus