Enum gapi_grpc::google::assistant::embedded::v1alpha2::audio_out_config::Encoding[][src]

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

Audio encoding of the data returned in the audio message. All encodings are raw audio bytes with no header, except as indicated below.

Variants

Unspecified

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

Linear16

Uncompressed 16-bit signed little-endian samples (Linear PCM).

Mp3

MP3 audio encoding. The sample rate is encoded in the payload.

OpusInOgg

Opus-encoded audio wrapped in an ogg container. The result will be a file which can be played natively on Android and in some browsers (such as Chrome). The quality of the encoding is considerably higher than MP3 while using the same bitrate. The sample rate is encoded in the payload.

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]