GoogleCloudDialogflowCxV3InputAudioConfig class
Instructs the speech recognizer on how to process the audio content.
Constructors
-
GoogleCloudDialogflowCxV3InputAudioConfig({required Input<
GoogleCloudDialogflowCxV3InputAudioConfigAudioEncoding> audioEncoding, Input<GoogleCloudDialogflowCxV3BargeInConfig> ? bargeInConfig, Input<bool> ? enableWordInfo, Input<String> ? model, Input<GoogleCloudDialogflowCxV3InputAudioConfigModelVariant> ? modelVariant, Input<List< ? phraseHints, Input<String> >int> ? sampleRateHertz, Input<bool> ? singleUtterance}) -
Creates a new GoogleCloudDialogflowCxV3InputAudioConfig.
audioEncodingAudio encoding of the audio content to process.bargeInConfigConfiguration of barge-in behavior during the streaming of input audio.enableWordInfoOptional. Iftrue, 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.modelOptional. 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)modelVariantOptional. Which variant of the Speech model to use.phraseHintsOptional. 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.sampleRateHertzSample rate (in Hertz) of the audio content sent in the query. Refer to Cloud Speech API documentation for more details.singleUtteranceOptional. Iffalse(default), recognition does not cease until the client closes the stream. Iftrue, 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 -
GoogleCloudDialogflowCxV3InputAudioConfig.fromMap(Map<
String, dynamic> map) -
factory
Properties
-
audioEncoding
→ Input<
GoogleCloudDialogflowCxV3InputAudioConfigAudioEncoding> -
Audio encoding of the audio content to process.
final
-
bargeInConfig
→ Input<
GoogleCloudDialogflowCxV3BargeInConfig> ? -
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<
GoogleCloudDialogflowCxV3InputAudioConfigModelVariant> ? -
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. Iftrue, 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