Struct gapi_grpc::google::assistant::embedded::v1alpha1::AudioInConfig[][src]

pub struct AudioInConfig {
    pub encoding: i32,
    pub sample_rate_hertz: i32,
}

Specifies how to process the audio_in data that will be provided in subsequent requests. For recommended settings, see the Google Assistant SDK best practices.

Fields

encoding: i32

Required Encoding of audio data sent in all audio_in messages.

sample_rate_hertz: i32

Required Sample rate (in Hertz) of the audio data sent in all audio_in messages. Valid values are from 16000-24000, but 16000 is optimal. For best results, set the sampling rate of the audio source to 16000 Hz. If that’s not possible, use the native sample rate of the audio source (instead of re-sampling).

Implementations

impl AudioInConfig[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 AudioInConfig[src]

impl Debug for AudioInConfig[src]

impl Default for AudioInConfig[src]

impl Message for AudioInConfig[src]

impl PartialEq<AudioInConfig> for AudioInConfig[src]

impl StructuralPartialEq for AudioInConfig[src]

Auto Trait Implementations

impl RefUnwindSafe for AudioInConfig

impl Send for AudioInConfig

impl Sync for AudioInConfig

impl Unpin for AudioInConfig

impl UnwindSafe for AudioInConfig

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]