#[repr(i32)]pub enum AudioEncoding {
Unspecified = 0,
Linear16 = 1,
Mp3 = 2,
OggOpus = 3,
}
Expand description
Configuration to set up audio encoder. The encoding determines the output audio format that we’d like.
Variants§
Unspecified = 0
Not specified. Will return result [google.rpc.Code.INVALID_ARGUMENT][].
Linear16 = 1
Uncompressed 16-bit signed little-endian samples (Linear PCM). Audio content returned as LINEAR16 also contains a WAV header.
Mp3 = 2
MP3 audio at 32kbps.
OggOpus = 3
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.
Implementations§
Trait Implementations§
Source§impl Clone for AudioEncoding
impl Clone for AudioEncoding
Source§fn clone(&self) -> AudioEncoding
fn clone(&self) -> AudioEncoding
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for AudioEncoding
impl Debug for AudioEncoding
Source§impl Default for AudioEncoding
impl Default for AudioEncoding
Source§fn default() -> AudioEncoding
fn default() -> AudioEncoding
Returns the “default value” for a type. Read more
Source§impl From<AudioEncoding> for i32
impl From<AudioEncoding> for i32
Source§fn from(value: AudioEncoding) -> i32
fn from(value: AudioEncoding) -> i32
Converts to this type from the input type.
Source§impl Hash for AudioEncoding
impl Hash for AudioEncoding
Source§impl Ord for AudioEncoding
impl Ord for AudioEncoding
Source§fn cmp(&self, other: &AudioEncoding) -> Ordering
fn cmp(&self, other: &AudioEncoding) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for AudioEncoding
impl PartialEq for AudioEncoding
Source§impl PartialOrd for AudioEncoding
impl PartialOrd for AudioEncoding
impl Copy for AudioEncoding
impl Eq for AudioEncoding
impl StructuralPartialEq for AudioEncoding
Auto Trait Implementations§
impl Freeze for AudioEncoding
impl RefUnwindSafe for AudioEncoding
impl Send for AudioEncoding
impl Sync for AudioEncoding
impl Unpin for AudioEncoding
impl UnwindSafe for AudioEncoding
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.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> 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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request