pub struct GoogleCloudDialogflowCxV3InputAudioConfig {
pub audio_encoding: Option<String>,
pub barge_in_config: Option<GoogleCloudDialogflowCxV3BargeInConfig>,
pub enable_word_info: Option<bool>,
pub model: Option<String>,
pub model_variant: Option<String>,
pub opt_out_conformer_model_migration: Option<bool>,
pub phrase_hints: Option<Vec<String>>,
pub sample_rate_hertz: Option<i32>,
pub single_utterance: Option<bool>,
}
Expand description
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§
§audio_encoding: Option<String>
Required. Audio encoding of the audio content to process.
barge_in_config: Option<GoogleCloudDialogflowCxV3BargeInConfig>
Configuration of barge-in behavior during the streaming of input audio.
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.
model: Option<String>
Optional. Which Speech model to select for the given request. For more information, see Speech models.
model_variant: Option<String>
Optional. Which variant of the Speech model to use.
opt_out_conformer_model_migration: Option<bool>
If true
, the request will opt out for STT conformer model migration. This field will be deprecated once force migration takes place in June 2024. Please refer to Dialogflow CX Speech model migration.
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>
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.
Trait Implementations§
Source§impl Clone for GoogleCloudDialogflowCxV3InputAudioConfig
impl Clone for GoogleCloudDialogflowCxV3InputAudioConfig
Source§fn clone(&self) -> GoogleCloudDialogflowCxV3InputAudioConfig
fn clone(&self) -> GoogleCloudDialogflowCxV3InputAudioConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Default for GoogleCloudDialogflowCxV3InputAudioConfig
impl Default for GoogleCloudDialogflowCxV3InputAudioConfig
Source§fn default() -> GoogleCloudDialogflowCxV3InputAudioConfig
fn default() -> GoogleCloudDialogflowCxV3InputAudioConfig
Source§impl<'de> Deserialize<'de> for GoogleCloudDialogflowCxV3InputAudioConfig
impl<'de> Deserialize<'de> for GoogleCloudDialogflowCxV3InputAudioConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Part for GoogleCloudDialogflowCxV3InputAudioConfig
Auto Trait Implementations§
impl Freeze for GoogleCloudDialogflowCxV3InputAudioConfig
impl RefUnwindSafe for GoogleCloudDialogflowCxV3InputAudioConfig
impl Send for GoogleCloudDialogflowCxV3InputAudioConfig
impl Sync for GoogleCloudDialogflowCxV3InputAudioConfig
impl Unpin for GoogleCloudDialogflowCxV3InputAudioConfig
impl UnwindSafe for GoogleCloudDialogflowCxV3InputAudioConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more