Struct gapi_grpc::google::assistant::embedded::v1alpha2::AudioOutConfig[][src]

pub struct AudioOutConfig {
    pub encoding: i32,
    pub sample_rate_hertz: i32,
    pub volume_percentage: i32,
}

Specifies the desired format for the server to use when it returns audio_out messages.

Fields

encoding: i32

Required The encoding of audio data to be returned in all audio_out messages.

sample_rate_hertz: i32

Required The sample rate in Hertz of the audio data returned in audio_out messages. Valid values are: 16000-24000.

volume_percentage: i32

Required Current volume setting of the device’s audio output. Valid values are 1 to 100 (corresponding to 1% to 100%).

Implementations

impl AudioOutConfig[src]

pub fn encoding(&self) -> Encoding[src]

Returns the enum value of encoding, or the default if the field is set to an invalid enum value.

pub fn set_encoding(&mut self, value: Encoding)[src]

Sets encoding to the provided enum value.

Trait Implementations

impl Clone for AudioOutConfig[src]

impl Debug for AudioOutConfig[src]

impl Default for AudioOutConfig[src]

impl Message for AudioOutConfig[src]

impl PartialEq<AudioOutConfig> for AudioOutConfig[src]

impl StructuralPartialEq for AudioOutConfig[src]

Auto Trait Implementations

impl RefUnwindSafe for AudioOutConfig

impl Send for AudioOutConfig

impl Sync for AudioOutConfig

impl Unpin for AudioOutConfig

impl UnwindSafe for AudioOutConfig

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<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]