#[non_exhaustive]pub enum OutputAudioEncoding {
Unspecified,
Linear16,
Mp3,
Mp364Kbps,
OggOpus,
Mulaw,
Alaw,
UnknownValue(UnknownValue),
}environments or participants or sessions only.Expand description
Audio encoding of the output audio format in Text-To-Speech.
§Working with unknown values
This enum is defined as #[non_exhaustive] because Google Cloud may add
additional enum variants at any time. Adding new variants is not considered
a breaking change. Applications should write their code in anticipation of:
- New values appearing in future releases of the client library, and
- New values received dynamically, without application changes.
Please consult the Working with enums section in the user guide for some guidelines.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Unspecified
Not specified.
Linear16
Uncompressed 16-bit signed little-endian samples (Linear PCM). Audio content returned as LINEAR16 also contains a WAV header.
Mp3
MP3 audio at 32kbps.
Mp364Kbps
MP3 audio at 64kbps.
OggOpus
Opus encoded audio wrapped in an ogg container. The result will be a file which can be played natively on Android, and in browsers (at least Chrome and Firefox). The quality of the encoding is considerably higher than MP3 while using approximately the same bitrate.
Mulaw
8-bit samples that compand 14-bit audio samples using G.711 PCMU/mu-law.
Alaw
8-bit samples that compand 13-bit audio samples using G.711 PCMU/a-law.
UnknownValue(UnknownValue)
If set, the enum was initialized with an unknown value.
Applications can examine the value using OutputAudioEncoding::value or OutputAudioEncoding::name.
Implementations§
Trait Implementations§
Source§impl Clone for OutputAudioEncoding
impl Clone for OutputAudioEncoding
Source§fn clone(&self) -> OutputAudioEncoding
fn clone(&self) -> OutputAudioEncoding
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for OutputAudioEncoding
impl Debug for OutputAudioEncoding
Source§impl Default for OutputAudioEncoding
impl Default for OutputAudioEncoding
Source§impl<'de> Deserialize<'de> for OutputAudioEncoding
impl<'de> Deserialize<'de> for OutputAudioEncoding
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Source§impl Display for OutputAudioEncoding
impl Display for OutputAudioEncoding
Source§impl From<&str> for OutputAudioEncoding
impl From<&str> for OutputAudioEncoding
Source§impl From<i32> for OutputAudioEncoding
impl From<i32> for OutputAudioEncoding
Source§impl PartialEq for OutputAudioEncoding
impl PartialEq for OutputAudioEncoding
Source§impl Serialize for OutputAudioEncoding
impl Serialize for OutputAudioEncoding
impl StructuralPartialEq for OutputAudioEncoding
Auto Trait Implementations§
impl Freeze for OutputAudioEncoding
impl RefUnwindSafe for OutputAudioEncoding
impl Send for OutputAudioEncoding
impl Sync for OutputAudioEncoding
impl Unpin for OutputAudioEncoding
impl UnwindSafe for OutputAudioEncoding
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.