[][src]Struct google_dialogflow2::GoogleCloudDialogflowV2InputAudioConfig

pub struct GoogleCloudDialogflowV2InputAudioConfig {
    pub language_code: Option<String>,
    pub audio_encoding: Option<String>,
    pub model_variant: Option<String>,
    pub phrase_hints: Option<Vec<String>>,
    pub sample_rate_hertz: Option<i32>,
    pub single_utterance: Option<bool>,
}

Instructs the speech recognizer how to process the audio content.

This type is not used in any activity, and only used as part of another schema.

Fields

language_code: Option<String>

Required. The language of the supplied audio. Dialogflow does not do translations. See Language Support for a list of the currently supported language codes. Note that queries in the same session do not necessarily need to specify the same language.

audio_encoding: Option<String>

Required. Audio encoding of the audio content to process.

model_variant: Option<String>

Optional. Which variant of the Speech model to use.

phrase_hints: Option<Vec<String>>

Optional. A list of strings containing words and phrases that the speech recognizer should recognize with higher likelihood.

See the Cloud Speech documentation for more details.

sample_rate_hertz: Option<i32>

Required. Sample rate (in Hertz) of the audio content sent in the query. Refer to Cloud Speech API documentation for more details.

single_utterance: Option<bool>

Optional. If false (default), recognition does not cease until the client closes the stream. If true, the recognizer will detect a single spoken utterance in input audio. Recognition ceases when it detects the audio's voice has stopped or paused. In this case, once a detected intent is received, the client should close the stream and start a new request with a new stream as needed. Note: This setting is relevant only for streaming methods. Note: When specified, InputAudioConfig.single_utterance takes precedence over StreamingDetectIntentRequest.single_utterance.

Trait Implementations

impl Part for GoogleCloudDialogflowV2InputAudioConfig[src]

impl Default for GoogleCloudDialogflowV2InputAudioConfig[src]

impl Clone for GoogleCloudDialogflowV2InputAudioConfig[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for GoogleCloudDialogflowV2InputAudioConfig[src]

impl Serialize for GoogleCloudDialogflowV2InputAudioConfig[src]

impl<'de> Deserialize<'de> for GoogleCloudDialogflowV2InputAudioConfig[src]

Auto Trait Implementations

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

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

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<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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

impl<T> Typeable for T where
    T: Any

fn get_type(&self) -> TypeId

Get the TypeId of this object.

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]