[−][src]Struct google_dialogflow2_beta1::GoogleCloudDialogflowV2beta1InputAudioConfig
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(&self) -> 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]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'de> Deserialize<'de> for GoogleCloudDialogflowV2beta1InputAudioConfig
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl Send for GoogleCloudDialogflowV2beta1InputAudioConfig
impl Unpin for GoogleCloudDialogflowV2beta1InputAudioConfig
impl Sync for GoogleCloudDialogflowV2beta1InputAudioConfig
impl UnwindSafe for GoogleCloudDialogflowV2beta1InputAudioConfig
impl RefUnwindSafe for GoogleCloudDialogflowV2beta1InputAudioConfig
Blanket Implementations
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> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
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> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
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>,