[][src]Struct google_dialogflow2_beta1::GoogleCloudDialogflowV2beta1InputAudioConfig

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

Instructs the speech recognizer on 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.

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.

enable_word_info: Option<bool>

Optional. If true, Dialogflow returns SpeechWordInfo in StreamingRecognitionResult with information about the recognized speech words, e.g. start and end time offsets. If false or unspecified, Speech doesn't return any word-level information.

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.

model_variant: Option<String>

Optional. Which variant of the Speech model to use.

model: Option<String>

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.

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 GoogleCloudDialogflowV2beta1InputAudioConfig[src]

impl Default for GoogleCloudDialogflowV2beta1InputAudioConfig[src]

impl Clone for GoogleCloudDialogflowV2beta1InputAudioConfig[src]

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

Performs copy-assignment from source. Read more

impl Debug for GoogleCloudDialogflowV2beta1InputAudioConfig[src]

impl Serialize for GoogleCloudDialogflowV2beta1InputAudioConfig[src]

impl<'de> Deserialize<'de> for GoogleCloudDialogflowV2beta1InputAudioConfig[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]