Enum google_api_proto::google::assistant::embedded::v1alpha1::audio_in_config::Encoding
source · #[repr(i32)]pub enum Encoding {
Unspecified = 0,
Linear16 = 1,
Flac = 2,
}
Expand description
Audio encoding of the data sent in the audio message. Audio must be one-channel (mono). The only language supported is “en-US”.
Variants§
Unspecified = 0
Not specified. Will return result [google.rpc.Code.INVALID_ARGUMENT][].
Linear16 = 1
Uncompressed 16-bit signed little-endian samples (Linear PCM). This encoding includes no header, only the raw audio bytes.
Flac = 2
FLAC
(Free Lossless Audio
Codec) is the recommended encoding because it is
lossless–therefore recognition is not compromised–and
requires only about half the bandwidth of LINEAR16
. This encoding
includes the FLAC
stream header followed by audio data. It supports
16-bit and 24-bit samples, however, not all fields in STREAMINFO
are
supported.
Implementations§
source§impl Encoding
impl Encoding
sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
source§impl Ord for Encoding
impl Ord for Encoding
source§impl PartialEq for Encoding
impl PartialEq for Encoding
source§impl PartialOrd for Encoding
impl PartialOrd for Encoding
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for Encoding
impl TryFrom<i32> for Encoding
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
impl Copy for Encoding
impl Eq for Encoding
impl StructuralPartialEq for Encoding
Auto Trait Implementations§
impl Freeze for Encoding
impl RefUnwindSafe for Encoding
impl Send for Encoding
impl Sync for Encoding
impl Unpin for Encoding
impl UnwindSafe for Encoding
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
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
T
in a tonic::Request