GoogleCloudDialogflowCxV3InputAudioConfigResponse class

Instructs the speech recognizer on how to process the audio content.

Constructors

GoogleCloudDialogflowCxV3InputAudioConfigResponse({required Input<String> audioEncoding, required Input<GoogleCloudDialogflowCxV3BargeInConfigResponse> bargeInConfig, required Input<bool> enableWordInfo, required Input<String> model, required Input<String> modelVariant, required Input<List<String>> phraseHints, required Input<int> sampleRateHertz, required Input<bool> singleUtterance})
Creates a new GoogleCloudDialogflowCxV3InputAudioConfigResponse. audioEncoding Audio encoding of the audio content to process. bargeInConfig Configuration of barge-in behavior during the streaming of input audio. enableWordInfo 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 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. If you specify a model, the following models typically have the best performance: - phone_call (best for Agent Assist and telephony) - latest_short (best for Dialogflow non-telephony) - command_and_search (best for very short utterances and commands) modelVariant Optional. Which variant of the Speech model to use. phraseHints 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. sampleRateHertz Sample rate (in Hertz) of the audio content sent in the query. Refer to Cloud Speech API documentation for more details. singleUtterance 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.
const
GoogleCloudDialogflowCxV3InputAudioConfigResponse.fromMap(Map<String, dynamic> map)
factory

Properties

audioEncoding → Input<String>
Audio encoding of the audio content to process.
final
bargeInConfig → Input<GoogleCloudDialogflowCxV3BargeInConfigResponse>
Configuration of barge-in behavior during the streaming of input audio.
final
enableWordInfo → Input<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.
final
hashCode → int
The hash code for this object.
no setterinherited
model → Input<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. If you specify a model, the following models typically have the best performance: - phone_call (best for Agent Assist and telephony) - latest_short (best for Dialogflow non-telephony) - command_and_search (best for very short utterances and commands)
final
modelVariant → Input<String>
Optional. Which variant of the Speech model to use.
final
phraseHints → Input<List<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.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sampleRateHertz → Input<int>
Sample rate (in Hertz) of the audio content sent in the query. Refer to Cloud Speech API documentation for more details.
final
singleUtterance → Input<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.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited