Enum gapi_grpc::google::assistant::embedded::v1alpha1::audio_in_config::Encoding[][src]

#[repr(i32)]pub enum Encoding {
    Unspecified,
    Linear16,
    Flac,
}

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

Not specified. Will return result [google.rpc.Code.INVALID_ARGUMENT][].

Linear16

Uncompressed 16-bit signed little-endian samples (Linear PCM). This encoding includes no header, only the raw audio bytes.

Flac

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

impl Encoding[src]

pub fn is_valid(value: i32) -> bool[src]

Returns true if value is a variant of Encoding.

pub fn from_i32(value: i32) -> Option<Encoding>[src]

Converts an i32 to a Encoding, or None if value is not a valid variant.

Trait Implementations

impl Clone for Encoding[src]

impl Copy for Encoding[src]

impl Debug for Encoding[src]

impl Default for Encoding[src]

impl Eq for Encoding[src]

impl From<Encoding> for i32[src]

impl Hash for Encoding[src]

impl Ord for Encoding[src]

impl PartialEq<Encoding> for Encoding[src]

impl PartialOrd<Encoding> for Encoding[src]

impl StructuralEq for Encoding[src]

impl StructuralPartialEq for Encoding[src]

Auto Trait Implementations

impl RefUnwindSafe for Encoding

impl Send for Encoding

impl Sync for Encoding

impl Unpin for Encoding

impl UnwindSafe for Encoding

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]