public static final class InputAudioConfig.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<InputAudioConfig.Builder> implements InputAudioConfigOrBuilder
Instructs the speech recognizer on how to process the audio content.Protobuf type
google.cloud.dialogflow.v2beta1.InputAudioConfig| Modifier and Type | Method and Description |
|---|---|
InputAudioConfig.Builder |
addAllPhraseHints(Iterable<String> values)
Deprecated.
google.cloud.dialogflow.v2beta1.InputAudioConfig.phrase_hints is deprecated. See
google/cloud/dialogflow/v2beta1/audio_config.proto;l=266
|
InputAudioConfig.Builder |
addAllSpeechContexts(Iterable<? extends SpeechContext> values)
Context information to assist speech recognition.
|
InputAudioConfig.Builder |
addPhraseHints(String value)
Deprecated.
google.cloud.dialogflow.v2beta1.InputAudioConfig.phrase_hints is deprecated. See
google/cloud/dialogflow/v2beta1/audio_config.proto;l=266
|
InputAudioConfig.Builder |
addPhraseHintsBytes(com.google.protobuf.ByteString value)
Deprecated.
google.cloud.dialogflow.v2beta1.InputAudioConfig.phrase_hints is deprecated. See
google/cloud/dialogflow/v2beta1/audio_config.proto;l=266
|
InputAudioConfig.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
InputAudioConfig.Builder |
addSpeechContexts(int index,
SpeechContext.Builder builderForValue)
Context information to assist speech recognition.
|
InputAudioConfig.Builder |
addSpeechContexts(int index,
SpeechContext value)
Context information to assist speech recognition.
|
InputAudioConfig.Builder |
addSpeechContexts(SpeechContext.Builder builderForValue)
Context information to assist speech recognition.
|
InputAudioConfig.Builder |
addSpeechContexts(SpeechContext value)
Context information to assist speech recognition.
|
SpeechContext.Builder |
addSpeechContextsBuilder()
Context information to assist speech recognition.
|
SpeechContext.Builder |
addSpeechContextsBuilder(int index)
Context information to assist speech recognition.
|
InputAudioConfig |
build() |
InputAudioConfig |
buildPartial() |
InputAudioConfig.Builder |
clear() |
InputAudioConfig.Builder |
clearAudioEncoding()
Required.
|
InputAudioConfig.Builder |
clearBargeInConfig()
Configuration of barge-in behavior during the streaming of input audio.
|
InputAudioConfig.Builder |
clearDisableNoSpeechRecognizedEvent()
Only used in
[Participants.AnalyzeContent][google.cloud.dialogflow.v2beta1.Participants.AnalyzeContent]
and
[Participants.StreamingAnalyzeContent][google.cloud.dialogflow.v2beta1.Participants.StreamingAnalyzeContent].
|
InputAudioConfig.Builder |
clearEnableAutomaticPunctuation()
Enable automatic punctuation option at the speech backend.
|
InputAudioConfig.Builder |
clearEnableWordInfo()
If `true`, Dialogflow returns
[SpeechWordInfo][google.cloud.dialogflow.v2beta1.SpeechWordInfo] in
[StreamingRecognitionResult][google.cloud.dialogflow.v2beta1.StreamingRecognitionResult]
with information about the recognized speech words, e.g.
|
InputAudioConfig.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
InputAudioConfig.Builder |
clearLanguageCode()
Required.
|
InputAudioConfig.Builder |
clearModel()
Which Speech model to select for the given request.
|
InputAudioConfig.Builder |
clearModelVariant()
Which variant of the [Speech
model][google.cloud.dialogflow.v2beta1.InputAudioConfig.model] to use.
|
InputAudioConfig.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
InputAudioConfig.Builder |
clearPhraseHints()
Deprecated.
google.cloud.dialogflow.v2beta1.InputAudioConfig.phrase_hints is deprecated. See
google/cloud/dialogflow/v2beta1/audio_config.proto;l=266
|
InputAudioConfig.Builder |
clearSampleRateHertz()
Required.
|
InputAudioConfig.Builder |
clearSingleUtterance()
If `false` (default), recognition does not cease until the
client closes the stream.
|
InputAudioConfig.Builder |
clearSpeechContexts()
Context information to assist speech recognition.
|
InputAudioConfig.Builder |
clone() |
AudioEncoding |
getAudioEncoding()
Required.
|
int |
getAudioEncodingValue()
Required.
|
BargeInConfig |
getBargeInConfig()
Configuration of barge-in behavior during the streaming of input audio.
|
BargeInConfig.Builder |
getBargeInConfigBuilder()
Configuration of barge-in behavior during the streaming of input audio.
|
BargeInConfigOrBuilder |
getBargeInConfigOrBuilder()
Configuration of barge-in behavior during the streaming of input audio.
|
InputAudioConfig |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
boolean |
getDisableNoSpeechRecognizedEvent()
Only used in
[Participants.AnalyzeContent][google.cloud.dialogflow.v2beta1.Participants.AnalyzeContent]
and
[Participants.StreamingAnalyzeContent][google.cloud.dialogflow.v2beta1.Participants.StreamingAnalyzeContent].
|
boolean |
getEnableAutomaticPunctuation()
Enable automatic punctuation option at the speech backend.
|
boolean |
getEnableWordInfo()
If `true`, Dialogflow returns
[SpeechWordInfo][google.cloud.dialogflow.v2beta1.SpeechWordInfo] in
[StreamingRecognitionResult][google.cloud.dialogflow.v2beta1.StreamingRecognitionResult]
with information about the recognized speech words, e.g.
|
String |
getLanguageCode()
Required.
|
com.google.protobuf.ByteString |
getLanguageCodeBytes()
Required.
|
String |
getModel()
Which Speech model to select for the given request.
|
com.google.protobuf.ByteString |
getModelBytes()
Which Speech model to select for the given request.
|
SpeechModelVariant |
getModelVariant()
Which variant of the [Speech
model][google.cloud.dialogflow.v2beta1.InputAudioConfig.model] to use.
|
int |
getModelVariantValue()
Which variant of the [Speech
model][google.cloud.dialogflow.v2beta1.InputAudioConfig.model] to use.
|
String |
getPhraseHints(int index)
Deprecated.
google.cloud.dialogflow.v2beta1.InputAudioConfig.phrase_hints is deprecated. See
google/cloud/dialogflow/v2beta1/audio_config.proto;l=266
|
com.google.protobuf.ByteString |
getPhraseHintsBytes(int index)
Deprecated.
google.cloud.dialogflow.v2beta1.InputAudioConfig.phrase_hints is deprecated. See
google/cloud/dialogflow/v2beta1/audio_config.proto;l=266
|
int |
getPhraseHintsCount()
Deprecated.
google.cloud.dialogflow.v2beta1.InputAudioConfig.phrase_hints is deprecated. See
google/cloud/dialogflow/v2beta1/audio_config.proto;l=266
|
com.google.protobuf.ProtocolStringList |
getPhraseHintsList()
Deprecated.
google.cloud.dialogflow.v2beta1.InputAudioConfig.phrase_hints is deprecated. See
google/cloud/dialogflow/v2beta1/audio_config.proto;l=266
|
int |
getSampleRateHertz()
Required.
|
boolean |
getSingleUtterance()
If `false` (default), recognition does not cease until the
client closes the stream.
|
SpeechContext |
getSpeechContexts(int index)
Context information to assist speech recognition.
|
SpeechContext.Builder |
getSpeechContextsBuilder(int index)
Context information to assist speech recognition.
|
List<SpeechContext.Builder> |
getSpeechContextsBuilderList()
Context information to assist speech recognition.
|
int |
getSpeechContextsCount()
Context information to assist speech recognition.
|
List<SpeechContext> |
getSpeechContextsList()
Context information to assist speech recognition.
|
SpeechContextOrBuilder |
getSpeechContextsOrBuilder(int index)
Context information to assist speech recognition.
|
List<? extends SpeechContextOrBuilder> |
getSpeechContextsOrBuilderList()
Context information to assist speech recognition.
|
boolean |
hasBargeInConfig()
Configuration of barge-in behavior during the streaming of input audio.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
InputAudioConfig.Builder |
mergeBargeInConfig(BargeInConfig value)
Configuration of barge-in behavior during the streaming of input audio.
|
InputAudioConfig.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
InputAudioConfig.Builder |
mergeFrom(InputAudioConfig other) |
InputAudioConfig.Builder |
mergeFrom(com.google.protobuf.Message other) |
InputAudioConfig.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
InputAudioConfig.Builder |
removeSpeechContexts(int index)
Context information to assist speech recognition.
|
InputAudioConfig.Builder |
setAudioEncoding(AudioEncoding value)
Required.
|
InputAudioConfig.Builder |
setAudioEncodingValue(int value)
Required.
|
InputAudioConfig.Builder |
setBargeInConfig(BargeInConfig.Builder builderForValue)
Configuration of barge-in behavior during the streaming of input audio.
|
InputAudioConfig.Builder |
setBargeInConfig(BargeInConfig value)
Configuration of barge-in behavior during the streaming of input audio.
|
InputAudioConfig.Builder |
setDisableNoSpeechRecognizedEvent(boolean value)
Only used in
[Participants.AnalyzeContent][google.cloud.dialogflow.v2beta1.Participants.AnalyzeContent]
and
[Participants.StreamingAnalyzeContent][google.cloud.dialogflow.v2beta1.Participants.StreamingAnalyzeContent].
|
InputAudioConfig.Builder |
setEnableAutomaticPunctuation(boolean value)
Enable automatic punctuation option at the speech backend.
|
InputAudioConfig.Builder |
setEnableWordInfo(boolean value)
If `true`, Dialogflow returns
[SpeechWordInfo][google.cloud.dialogflow.v2beta1.SpeechWordInfo] in
[StreamingRecognitionResult][google.cloud.dialogflow.v2beta1.StreamingRecognitionResult]
with information about the recognized speech words, e.g.
|
InputAudioConfig.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
InputAudioConfig.Builder |
setLanguageCode(String value)
Required.
|
InputAudioConfig.Builder |
setLanguageCodeBytes(com.google.protobuf.ByteString value)
Required.
|
InputAudioConfig.Builder |
setModel(String value)
Which Speech model to select for the given request.
|
InputAudioConfig.Builder |
setModelBytes(com.google.protobuf.ByteString value)
Which Speech model to select for the given request.
|
InputAudioConfig.Builder |
setModelVariant(SpeechModelVariant value)
Which variant of the [Speech
model][google.cloud.dialogflow.v2beta1.InputAudioConfig.model] to use.
|
InputAudioConfig.Builder |
setModelVariantValue(int value)
Which variant of the [Speech
model][google.cloud.dialogflow.v2beta1.InputAudioConfig.model] to use.
|
InputAudioConfig.Builder |
setPhraseHints(int index,
String value)
Deprecated.
google.cloud.dialogflow.v2beta1.InputAudioConfig.phrase_hints is deprecated. See
google/cloud/dialogflow/v2beta1/audio_config.proto;l=266
|
InputAudioConfig.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
InputAudioConfig.Builder |
setSampleRateHertz(int value)
Required.
|
InputAudioConfig.Builder |
setSingleUtterance(boolean value)
If `false` (default), recognition does not cease until the
client closes the stream.
|
InputAudioConfig.Builder |
setSpeechContexts(int index,
SpeechContext.Builder builderForValue)
Context information to assist speech recognition.
|
InputAudioConfig.Builder |
setSpeechContexts(int index,
SpeechContext value)
Context information to assist speech recognition.
|
InputAudioConfig.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<InputAudioConfig.Builder>public InputAudioConfig.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<InputAudioConfig.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<InputAudioConfig.Builder>public InputAudioConfig getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic InputAudioConfig build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic InputAudioConfig buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic InputAudioConfig.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<InputAudioConfig.Builder>public InputAudioConfig.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<InputAudioConfig.Builder>public InputAudioConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<InputAudioConfig.Builder>public InputAudioConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<InputAudioConfig.Builder>public InputAudioConfig.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<InputAudioConfig.Builder>public InputAudioConfig.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<InputAudioConfig.Builder>public InputAudioConfig.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<InputAudioConfig.Builder>public InputAudioConfig.Builder mergeFrom(InputAudioConfig other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<InputAudioConfig.Builder>public InputAudioConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<InputAudioConfig.Builder>IOExceptionpublic int getAudioEncodingValue()
Required. Audio encoding of the audio content to process.
.google.cloud.dialogflow.v2beta1.AudioEncoding audio_encoding = 1;getAudioEncodingValue in interface InputAudioConfigOrBuilderpublic InputAudioConfig.Builder setAudioEncodingValue(int value)
Required. Audio encoding of the audio content to process.
.google.cloud.dialogflow.v2beta1.AudioEncoding audio_encoding = 1;value - The enum numeric value on the wire for audioEncoding to set.public AudioEncoding getAudioEncoding()
Required. Audio encoding of the audio content to process.
.google.cloud.dialogflow.v2beta1.AudioEncoding audio_encoding = 1;getAudioEncoding in interface InputAudioConfigOrBuilderpublic InputAudioConfig.Builder setAudioEncoding(AudioEncoding value)
Required. Audio encoding of the audio content to process.
.google.cloud.dialogflow.v2beta1.AudioEncoding audio_encoding = 1;value - The audioEncoding to set.public InputAudioConfig.Builder clearAudioEncoding()
Required. Audio encoding of the audio content to process.
.google.cloud.dialogflow.v2beta1.AudioEncoding audio_encoding = 1;public int getSampleRateHertz()
Required. Sample rate (in Hertz) of the audio content sent in the query. Refer to [Cloud Speech API documentation](https://cloud.google.com/speech-to-text/docs/basics) for more details.
int32 sample_rate_hertz = 2;getSampleRateHertz in interface InputAudioConfigOrBuilderpublic InputAudioConfig.Builder setSampleRateHertz(int value)
Required. Sample rate (in Hertz) of the audio content sent in the query. Refer to [Cloud Speech API documentation](https://cloud.google.com/speech-to-text/docs/basics) for more details.
int32 sample_rate_hertz = 2;value - The sampleRateHertz to set.public InputAudioConfig.Builder clearSampleRateHertz()
Required. Sample rate (in Hertz) of the audio content sent in the query. Refer to [Cloud Speech API documentation](https://cloud.google.com/speech-to-text/docs/basics) for more details.
int32 sample_rate_hertz = 2;public String getLanguageCode()
Required. The language of the supplied audio. Dialogflow does not do translations. See [Language Support](https://cloud.google.com/dialogflow/docs/reference/language) 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.
string language_code = 3;getLanguageCode in interface InputAudioConfigOrBuilderpublic com.google.protobuf.ByteString getLanguageCodeBytes()
Required. The language of the supplied audio. Dialogflow does not do translations. See [Language Support](https://cloud.google.com/dialogflow/docs/reference/language) 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.
string language_code = 3;getLanguageCodeBytes in interface InputAudioConfigOrBuilderpublic InputAudioConfig.Builder setLanguageCode(String value)
Required. The language of the supplied audio. Dialogflow does not do translations. See [Language Support](https://cloud.google.com/dialogflow/docs/reference/language) 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.
string language_code = 3;value - The languageCode to set.public InputAudioConfig.Builder clearLanguageCode()
Required. The language of the supplied audio. Dialogflow does not do translations. See [Language Support](https://cloud.google.com/dialogflow/docs/reference/language) 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.
string language_code = 3;public InputAudioConfig.Builder setLanguageCodeBytes(com.google.protobuf.ByteString value)
Required. The language of the supplied audio. Dialogflow does not do translations. See [Language Support](https://cloud.google.com/dialogflow/docs/reference/language) 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.
string language_code = 3;value - The bytes for languageCode to set.public boolean getEnableWordInfo()
If `true`, Dialogflow returns [SpeechWordInfo][google.cloud.dialogflow.v2beta1.SpeechWordInfo] in [StreamingRecognitionResult][google.cloud.dialogflow.v2beta1.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.
bool enable_word_info = 13;getEnableWordInfo in interface InputAudioConfigOrBuilderpublic InputAudioConfig.Builder setEnableWordInfo(boolean value)
If `true`, Dialogflow returns [SpeechWordInfo][google.cloud.dialogflow.v2beta1.SpeechWordInfo] in [StreamingRecognitionResult][google.cloud.dialogflow.v2beta1.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.
bool enable_word_info = 13;value - The enableWordInfo to set.public InputAudioConfig.Builder clearEnableWordInfo()
If `true`, Dialogflow returns [SpeechWordInfo][google.cloud.dialogflow.v2beta1.SpeechWordInfo] in [StreamingRecognitionResult][google.cloud.dialogflow.v2beta1.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.
bool enable_word_info = 13;@Deprecated public com.google.protobuf.ProtocolStringList getPhraseHintsList()
A list of strings containing words and phrases that the speech recognizer should recognize with higher likelihood. See [the Cloud Speech documentation](https://cloud.google.com/speech-to-text/docs/basics#phrase-hints) for more details. This field is deprecated. Please use [speech_contexts]() instead. If you specify both [phrase_hints]() and [speech_contexts](), Dialogflow will treat the [phrase_hints]() as a single additional [SpeechContext]().
repeated string phrase_hints = 4 [deprecated = true];getPhraseHintsList in interface InputAudioConfigOrBuilder@Deprecated public int getPhraseHintsCount()
A list of strings containing words and phrases that the speech recognizer should recognize with higher likelihood. See [the Cloud Speech documentation](https://cloud.google.com/speech-to-text/docs/basics#phrase-hints) for more details. This field is deprecated. Please use [speech_contexts]() instead. If you specify both [phrase_hints]() and [speech_contexts](), Dialogflow will treat the [phrase_hints]() as a single additional [SpeechContext]().
repeated string phrase_hints = 4 [deprecated = true];getPhraseHintsCount in interface InputAudioConfigOrBuilder@Deprecated public String getPhraseHints(int index)
A list of strings containing words and phrases that the speech recognizer should recognize with higher likelihood. See [the Cloud Speech documentation](https://cloud.google.com/speech-to-text/docs/basics#phrase-hints) for more details. This field is deprecated. Please use [speech_contexts]() instead. If you specify both [phrase_hints]() and [speech_contexts](), Dialogflow will treat the [phrase_hints]() as a single additional [SpeechContext]().
repeated string phrase_hints = 4 [deprecated = true];getPhraseHints in interface InputAudioConfigOrBuilderindex - The index of the element to return.@Deprecated public com.google.protobuf.ByteString getPhraseHintsBytes(int index)
A list of strings containing words and phrases that the speech recognizer should recognize with higher likelihood. See [the Cloud Speech documentation](https://cloud.google.com/speech-to-text/docs/basics#phrase-hints) for more details. This field is deprecated. Please use [speech_contexts]() instead. If you specify both [phrase_hints]() and [speech_contexts](), Dialogflow will treat the [phrase_hints]() as a single additional [SpeechContext]().
repeated string phrase_hints = 4 [deprecated = true];getPhraseHintsBytes in interface InputAudioConfigOrBuilderindex - The index of the value to return.@Deprecated public InputAudioConfig.Builder setPhraseHints(int index, String value)
A list of strings containing words and phrases that the speech recognizer should recognize with higher likelihood. See [the Cloud Speech documentation](https://cloud.google.com/speech-to-text/docs/basics#phrase-hints) for more details. This field is deprecated. Please use [speech_contexts]() instead. If you specify both [phrase_hints]() and [speech_contexts](), Dialogflow will treat the [phrase_hints]() as a single additional [SpeechContext]().
repeated string phrase_hints = 4 [deprecated = true];index - The index to set the value at.value - The phraseHints to set.@Deprecated public InputAudioConfig.Builder addPhraseHints(String value)
A list of strings containing words and phrases that the speech recognizer should recognize with higher likelihood. See [the Cloud Speech documentation](https://cloud.google.com/speech-to-text/docs/basics#phrase-hints) for more details. This field is deprecated. Please use [speech_contexts]() instead. If you specify both [phrase_hints]() and [speech_contexts](), Dialogflow will treat the [phrase_hints]() as a single additional [SpeechContext]().
repeated string phrase_hints = 4 [deprecated = true];value - The phraseHints to add.@Deprecated public InputAudioConfig.Builder addAllPhraseHints(Iterable<String> values)
A list of strings containing words and phrases that the speech recognizer should recognize with higher likelihood. See [the Cloud Speech documentation](https://cloud.google.com/speech-to-text/docs/basics#phrase-hints) for more details. This field is deprecated. Please use [speech_contexts]() instead. If you specify both [phrase_hints]() and [speech_contexts](), Dialogflow will treat the [phrase_hints]() as a single additional [SpeechContext]().
repeated string phrase_hints = 4 [deprecated = true];values - The phraseHints to add.@Deprecated public InputAudioConfig.Builder clearPhraseHints()
A list of strings containing words and phrases that the speech recognizer should recognize with higher likelihood. See [the Cloud Speech documentation](https://cloud.google.com/speech-to-text/docs/basics#phrase-hints) for more details. This field is deprecated. Please use [speech_contexts]() instead. If you specify both [phrase_hints]() and [speech_contexts](), Dialogflow will treat the [phrase_hints]() as a single additional [SpeechContext]().
repeated string phrase_hints = 4 [deprecated = true];@Deprecated public InputAudioConfig.Builder addPhraseHintsBytes(com.google.protobuf.ByteString value)
A list of strings containing words and phrases that the speech recognizer should recognize with higher likelihood. See [the Cloud Speech documentation](https://cloud.google.com/speech-to-text/docs/basics#phrase-hints) for more details. This field is deprecated. Please use [speech_contexts]() instead. If you specify both [phrase_hints]() and [speech_contexts](), Dialogflow will treat the [phrase_hints]() as a single additional [SpeechContext]().
repeated string phrase_hints = 4 [deprecated = true];value - The bytes of the phraseHints to add.public List<SpeechContext> getSpeechContextsList()
Context information to assist speech recognition. See [the Cloud Speech documentation](https://cloud.google.com/speech-to-text/docs/basics#phrase-hints) for more details.
repeated .google.cloud.dialogflow.v2beta1.SpeechContext speech_contexts = 11;getSpeechContextsList in interface InputAudioConfigOrBuilderpublic int getSpeechContextsCount()
Context information to assist speech recognition. See [the Cloud Speech documentation](https://cloud.google.com/speech-to-text/docs/basics#phrase-hints) for more details.
repeated .google.cloud.dialogflow.v2beta1.SpeechContext speech_contexts = 11;getSpeechContextsCount in interface InputAudioConfigOrBuilderpublic SpeechContext getSpeechContexts(int index)
Context information to assist speech recognition. See [the Cloud Speech documentation](https://cloud.google.com/speech-to-text/docs/basics#phrase-hints) for more details.
repeated .google.cloud.dialogflow.v2beta1.SpeechContext speech_contexts = 11;getSpeechContexts in interface InputAudioConfigOrBuilderpublic InputAudioConfig.Builder setSpeechContexts(int index, SpeechContext value)
Context information to assist speech recognition. See [the Cloud Speech documentation](https://cloud.google.com/speech-to-text/docs/basics#phrase-hints) for more details.
repeated .google.cloud.dialogflow.v2beta1.SpeechContext speech_contexts = 11;public InputAudioConfig.Builder setSpeechContexts(int index, SpeechContext.Builder builderForValue)
Context information to assist speech recognition. See [the Cloud Speech documentation](https://cloud.google.com/speech-to-text/docs/basics#phrase-hints) for more details.
repeated .google.cloud.dialogflow.v2beta1.SpeechContext speech_contexts = 11;public InputAudioConfig.Builder addSpeechContexts(SpeechContext value)
Context information to assist speech recognition. See [the Cloud Speech documentation](https://cloud.google.com/speech-to-text/docs/basics#phrase-hints) for more details.
repeated .google.cloud.dialogflow.v2beta1.SpeechContext speech_contexts = 11;public InputAudioConfig.Builder addSpeechContexts(int index, SpeechContext value)
Context information to assist speech recognition. See [the Cloud Speech documentation](https://cloud.google.com/speech-to-text/docs/basics#phrase-hints) for more details.
repeated .google.cloud.dialogflow.v2beta1.SpeechContext speech_contexts = 11;public InputAudioConfig.Builder addSpeechContexts(SpeechContext.Builder builderForValue)
Context information to assist speech recognition. See [the Cloud Speech documentation](https://cloud.google.com/speech-to-text/docs/basics#phrase-hints) for more details.
repeated .google.cloud.dialogflow.v2beta1.SpeechContext speech_contexts = 11;public InputAudioConfig.Builder addSpeechContexts(int index, SpeechContext.Builder builderForValue)
Context information to assist speech recognition. See [the Cloud Speech documentation](https://cloud.google.com/speech-to-text/docs/basics#phrase-hints) for more details.
repeated .google.cloud.dialogflow.v2beta1.SpeechContext speech_contexts = 11;public InputAudioConfig.Builder addAllSpeechContexts(Iterable<? extends SpeechContext> values)
Context information to assist speech recognition. See [the Cloud Speech documentation](https://cloud.google.com/speech-to-text/docs/basics#phrase-hints) for more details.
repeated .google.cloud.dialogflow.v2beta1.SpeechContext speech_contexts = 11;public InputAudioConfig.Builder clearSpeechContexts()
Context information to assist speech recognition. See [the Cloud Speech documentation](https://cloud.google.com/speech-to-text/docs/basics#phrase-hints) for more details.
repeated .google.cloud.dialogflow.v2beta1.SpeechContext speech_contexts = 11;public InputAudioConfig.Builder removeSpeechContexts(int index)
Context information to assist speech recognition. See [the Cloud Speech documentation](https://cloud.google.com/speech-to-text/docs/basics#phrase-hints) for more details.
repeated .google.cloud.dialogflow.v2beta1.SpeechContext speech_contexts = 11;public SpeechContext.Builder getSpeechContextsBuilder(int index)
Context information to assist speech recognition. See [the Cloud Speech documentation](https://cloud.google.com/speech-to-text/docs/basics#phrase-hints) for more details.
repeated .google.cloud.dialogflow.v2beta1.SpeechContext speech_contexts = 11;public SpeechContextOrBuilder getSpeechContextsOrBuilder(int index)
Context information to assist speech recognition. See [the Cloud Speech documentation](https://cloud.google.com/speech-to-text/docs/basics#phrase-hints) for more details.
repeated .google.cloud.dialogflow.v2beta1.SpeechContext speech_contexts = 11;getSpeechContextsOrBuilder in interface InputAudioConfigOrBuilderpublic List<? extends SpeechContextOrBuilder> getSpeechContextsOrBuilderList()
Context information to assist speech recognition. See [the Cloud Speech documentation](https://cloud.google.com/speech-to-text/docs/basics#phrase-hints) for more details.
repeated .google.cloud.dialogflow.v2beta1.SpeechContext speech_contexts = 11;getSpeechContextsOrBuilderList in interface InputAudioConfigOrBuilderpublic SpeechContext.Builder addSpeechContextsBuilder()
Context information to assist speech recognition. See [the Cloud Speech documentation](https://cloud.google.com/speech-to-text/docs/basics#phrase-hints) for more details.
repeated .google.cloud.dialogflow.v2beta1.SpeechContext speech_contexts = 11;public SpeechContext.Builder addSpeechContextsBuilder(int index)
Context information to assist speech recognition. See [the Cloud Speech documentation](https://cloud.google.com/speech-to-text/docs/basics#phrase-hints) for more details.
repeated .google.cloud.dialogflow.v2beta1.SpeechContext speech_contexts = 11;public List<SpeechContext.Builder> getSpeechContextsBuilderList()
Context information to assist speech recognition. See [the Cloud Speech documentation](https://cloud.google.com/speech-to-text/docs/basics#phrase-hints) for more details.
repeated .google.cloud.dialogflow.v2beta1.SpeechContext speech_contexts = 11;public String getModel()
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](https://cloud.google.com/speech-to-text/docs/basics#select-model) 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)
string model = 7;getModel in interface InputAudioConfigOrBuilderpublic com.google.protobuf.ByteString getModelBytes()
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](https://cloud.google.com/speech-to-text/docs/basics#select-model) 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)
string model = 7;getModelBytes in interface InputAudioConfigOrBuilderpublic InputAudioConfig.Builder setModel(String value)
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](https://cloud.google.com/speech-to-text/docs/basics#select-model) 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)
string model = 7;value - The model to set.public InputAudioConfig.Builder clearModel()
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](https://cloud.google.com/speech-to-text/docs/basics#select-model) 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)
string model = 7;public InputAudioConfig.Builder setModelBytes(com.google.protobuf.ByteString value)
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](https://cloud.google.com/speech-to-text/docs/basics#select-model) 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)
string model = 7;value - The bytes for model to set.public int getModelVariantValue()
Which variant of the [Speech model][google.cloud.dialogflow.v2beta1.InputAudioConfig.model] to use.
.google.cloud.dialogflow.v2beta1.SpeechModelVariant model_variant = 10;getModelVariantValue in interface InputAudioConfigOrBuilderpublic InputAudioConfig.Builder setModelVariantValue(int value)
Which variant of the [Speech model][google.cloud.dialogflow.v2beta1.InputAudioConfig.model] to use.
.google.cloud.dialogflow.v2beta1.SpeechModelVariant model_variant = 10;value - The enum numeric value on the wire for modelVariant to set.public SpeechModelVariant getModelVariant()
Which variant of the [Speech model][google.cloud.dialogflow.v2beta1.InputAudioConfig.model] to use.
.google.cloud.dialogflow.v2beta1.SpeechModelVariant model_variant = 10;getModelVariant in interface InputAudioConfigOrBuilderpublic InputAudioConfig.Builder setModelVariant(SpeechModelVariant value)
Which variant of the [Speech model][google.cloud.dialogflow.v2beta1.InputAudioConfig.model] to use.
.google.cloud.dialogflow.v2beta1.SpeechModelVariant model_variant = 10;value - The modelVariant to set.public InputAudioConfig.Builder clearModelVariant()
Which variant of the [Speech model][google.cloud.dialogflow.v2beta1.InputAudioConfig.model] to use.
.google.cloud.dialogflow.v2beta1.SpeechModelVariant model_variant = 10;public boolean getSingleUtterance()
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.
bool single_utterance = 8;getSingleUtterance in interface InputAudioConfigOrBuilderpublic InputAudioConfig.Builder setSingleUtterance(boolean value)
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.
bool single_utterance = 8;value - The singleUtterance to set.public InputAudioConfig.Builder clearSingleUtterance()
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.
bool single_utterance = 8;public boolean getDisableNoSpeechRecognizedEvent()
Only used in [Participants.AnalyzeContent][google.cloud.dialogflow.v2beta1.Participants.AnalyzeContent] and [Participants.StreamingAnalyzeContent][google.cloud.dialogflow.v2beta1.Participants.StreamingAnalyzeContent]. If `false` and recognition doesn't return any result, trigger `NO_SPEECH_RECOGNIZED` event to Dialogflow agent.
bool disable_no_speech_recognized_event = 14;getDisableNoSpeechRecognizedEvent in interface InputAudioConfigOrBuilderpublic InputAudioConfig.Builder setDisableNoSpeechRecognizedEvent(boolean value)
Only used in [Participants.AnalyzeContent][google.cloud.dialogflow.v2beta1.Participants.AnalyzeContent] and [Participants.StreamingAnalyzeContent][google.cloud.dialogflow.v2beta1.Participants.StreamingAnalyzeContent]. If `false` and recognition doesn't return any result, trigger `NO_SPEECH_RECOGNIZED` event to Dialogflow agent.
bool disable_no_speech_recognized_event = 14;value - The disableNoSpeechRecognizedEvent to set.public InputAudioConfig.Builder clearDisableNoSpeechRecognizedEvent()
Only used in [Participants.AnalyzeContent][google.cloud.dialogflow.v2beta1.Participants.AnalyzeContent] and [Participants.StreamingAnalyzeContent][google.cloud.dialogflow.v2beta1.Participants.StreamingAnalyzeContent]. If `false` and recognition doesn't return any result, trigger `NO_SPEECH_RECOGNIZED` event to Dialogflow agent.
bool disable_no_speech_recognized_event = 14;public boolean hasBargeInConfig()
Configuration of barge-in behavior during the streaming of input audio.
.google.cloud.dialogflow.v2beta1.BargeInConfig barge_in_config = 15;hasBargeInConfig in interface InputAudioConfigOrBuilderpublic BargeInConfig getBargeInConfig()
Configuration of barge-in behavior during the streaming of input audio.
.google.cloud.dialogflow.v2beta1.BargeInConfig barge_in_config = 15;getBargeInConfig in interface InputAudioConfigOrBuilderpublic InputAudioConfig.Builder setBargeInConfig(BargeInConfig value)
Configuration of barge-in behavior during the streaming of input audio.
.google.cloud.dialogflow.v2beta1.BargeInConfig barge_in_config = 15;public InputAudioConfig.Builder setBargeInConfig(BargeInConfig.Builder builderForValue)
Configuration of barge-in behavior during the streaming of input audio.
.google.cloud.dialogflow.v2beta1.BargeInConfig barge_in_config = 15;public InputAudioConfig.Builder mergeBargeInConfig(BargeInConfig value)
Configuration of barge-in behavior during the streaming of input audio.
.google.cloud.dialogflow.v2beta1.BargeInConfig barge_in_config = 15;public InputAudioConfig.Builder clearBargeInConfig()
Configuration of barge-in behavior during the streaming of input audio.
.google.cloud.dialogflow.v2beta1.BargeInConfig barge_in_config = 15;public BargeInConfig.Builder getBargeInConfigBuilder()
Configuration of barge-in behavior during the streaming of input audio.
.google.cloud.dialogflow.v2beta1.BargeInConfig barge_in_config = 15;public BargeInConfigOrBuilder getBargeInConfigOrBuilder()
Configuration of barge-in behavior during the streaming of input audio.
.google.cloud.dialogflow.v2beta1.BargeInConfig barge_in_config = 15;getBargeInConfigOrBuilder in interface InputAudioConfigOrBuilderpublic boolean getEnableAutomaticPunctuation()
Enable automatic punctuation option at the speech backend.
bool enable_automatic_punctuation = 17;getEnableAutomaticPunctuation in interface InputAudioConfigOrBuilderpublic InputAudioConfig.Builder setEnableAutomaticPunctuation(boolean value)
Enable automatic punctuation option at the speech backend.
bool enable_automatic_punctuation = 17;value - The enableAutomaticPunctuation to set.public InputAudioConfig.Builder clearEnableAutomaticPunctuation()
Enable automatic punctuation option at the speech backend.
bool enable_automatic_punctuation = 17;public final InputAudioConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<InputAudioConfig.Builder>public final InputAudioConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<InputAudioConfig.Builder>Copyright © 2023 Google LLC. All rights reserved.