[−][src]Struct google_dialogflow2::GoogleCloudDialogflowV2InputAudioConfig
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 Clone for GoogleCloudDialogflowV2InputAudioConfig[src]
fn clone(&self) -> GoogleCloudDialogflowV2InputAudioConfig[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Default for GoogleCloudDialogflowV2InputAudioConfig[src]
impl Debug for GoogleCloudDialogflowV2InputAudioConfig[src]
impl Serialize for GoogleCloudDialogflowV2InputAudioConfig[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer, [src]
__S: Serializer,
impl<'de> Deserialize<'de> for GoogleCloudDialogflowV2InputAudioConfig[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl Send for GoogleCloudDialogflowV2InputAudioConfig
impl Sync for GoogleCloudDialogflowV2InputAudioConfig
impl Unpin for GoogleCloudDialogflowV2InputAudioConfig
impl UnwindSafe for GoogleCloudDialogflowV2InputAudioConfig
impl RefUnwindSafe for GoogleCloudDialogflowV2InputAudioConfig
Blanket Implementations
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = !
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Typeable for T where
T: Any,
T: Any,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>, [src]
T: Deserialize<'de>,