Struct google_dialogflow2_beta1::GoogleCloudDialogflowV2beta1InputAudioConfig[][src]

pub struct GoogleCloudDialogflowV2beta1InputAudioConfig {
    pub phrase_hints: Option<Vec<String>>,
    pub language_code: Option<String>,
    pub model: Option<String>,
    pub sample_rate_hertz: Option<i32>,
    pub audio_encoding: Option<String>,
}

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

Optional. The collection of phrase hints which are used to boost accuracy of speech recognition. Refer to Cloud Speech API documentation for more details.

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.

Optional. Which Speech model to select for the given request. Select the model best suited to your domain to get best results. If a model is not explicitly specified, then we auto-select a model based on the parameters in the InputAudioConfig. If enhanced speech model is enabled for the agent and an enhanced version of the specified model for the language does not exist, then the speech is recognized using the standard version of the specified model. Refer to Cloud Speech API documentation for more details.

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

Required. Audio encoding of the audio content to process.

Trait Implementations

impl Default for GoogleCloudDialogflowV2beta1InputAudioConfig
[src]

Returns the "default value" for a type. Read more

impl Clone for GoogleCloudDialogflowV2beta1InputAudioConfig
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for GoogleCloudDialogflowV2beta1InputAudioConfig
[src]

Formats the value using the given formatter. Read more

impl Part for GoogleCloudDialogflowV2beta1InputAudioConfig
[src]

Auto Trait Implementations