public static final class InputAudioConfig.Builder extends GeneratedMessageV3.Builder<InputAudioConfig.Builder> implements InputAudioConfigOrBuilder
Instructs the speech recognizer how to process the audio content.Protobuf type
google.cloud.dialogflow.v2.InputAudioConfig
Modifier and Type | Method and Description |
---|---|
InputAudioConfig.Builder |
addAllPhraseHints(Iterable<String> values)
Deprecated.
google.cloud.dialogflow.v2.InputAudioConfig.phrase_hints is deprecated. See
google/cloud/dialogflow/v2/audio_config.proto;l=220
|
InputAudioConfig.Builder |
addAllSpeechContexts(Iterable<? extends SpeechContext> values)
Context information to assist speech recognition.
|
InputAudioConfig.Builder |
addPhraseHints(String value)
Deprecated.
google.cloud.dialogflow.v2.InputAudioConfig.phrase_hints is deprecated. See
google/cloud/dialogflow/v2/audio_config.proto;l=220
|
InputAudioConfig.Builder |
addPhraseHintsBytes(ByteString value)
Deprecated.
google.cloud.dialogflow.v2.InputAudioConfig.phrase_hints is deprecated. See
google/cloud/dialogflow/v2/audio_config.proto;l=220
|
InputAudioConfig.Builder |
addRepeatedField(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 |
clearDisableNoSpeechRecognizedEvent()
Only used in [Participants.AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent] and
[Participants.StreamingAnalyzeContent][google.cloud.dialogflow.v2.Participants.StreamingAnalyzeContent].
|
InputAudioConfig.Builder |
clearEnableWordInfo()
If `true`, Dialogflow returns [SpeechWordInfo][google.cloud.dialogflow.v2.SpeechWordInfo] in
[StreamingRecognitionResult][google.cloud.dialogflow.v2.StreamingRecognitionResult] with information about the recognized speech
words, e.g.
|
InputAudioConfig.Builder |
clearField(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.v2.InputAudioConfig.model] to use.
|
InputAudioConfig.Builder |
clearOneof(Descriptors.OneofDescriptor oneof) |
InputAudioConfig.Builder |
clearPhraseHints()
Deprecated.
google.cloud.dialogflow.v2.InputAudioConfig.phrase_hints is deprecated. See
google/cloud/dialogflow/v2/audio_config.proto;l=220
|
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.
|
InputAudioConfig |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
Descriptors.Descriptor |
getDescriptorForType() |
boolean |
getDisableNoSpeechRecognizedEvent()
Only used in [Participants.AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent] and
[Participants.StreamingAnalyzeContent][google.cloud.dialogflow.v2.Participants.StreamingAnalyzeContent].
|
boolean |
getEnableWordInfo()
If `true`, Dialogflow returns [SpeechWordInfo][google.cloud.dialogflow.v2.SpeechWordInfo] in
[StreamingRecognitionResult][google.cloud.dialogflow.v2.StreamingRecognitionResult] with information about the recognized speech
words, e.g.
|
String |
getLanguageCode()
Required.
|
ByteString |
getLanguageCodeBytes()
Required.
|
String |
getModel()
Which Speech model to select for the given request.
|
ByteString |
getModelBytes()
Which Speech model to select for the given request.
|
SpeechModelVariant |
getModelVariant()
Which variant of the [Speech model][google.cloud.dialogflow.v2.InputAudioConfig.model] to use.
|
int |
getModelVariantValue()
Which variant of the [Speech model][google.cloud.dialogflow.v2.InputAudioConfig.model] to use.
|
String |
getPhraseHints(int index)
Deprecated.
google.cloud.dialogflow.v2.InputAudioConfig.phrase_hints is deprecated. See
google/cloud/dialogflow/v2/audio_config.proto;l=220
|
ByteString |
getPhraseHintsBytes(int index)
Deprecated.
google.cloud.dialogflow.v2.InputAudioConfig.phrase_hints is deprecated. See
google/cloud/dialogflow/v2/audio_config.proto;l=220
|
int |
getPhraseHintsCount()
Deprecated.
google.cloud.dialogflow.v2.InputAudioConfig.phrase_hints is deprecated. See
google/cloud/dialogflow/v2/audio_config.proto;l=220
|
ProtocolStringList |
getPhraseHintsList()
Deprecated.
google.cloud.dialogflow.v2.InputAudioConfig.phrase_hints is deprecated. See
google/cloud/dialogflow/v2/audio_config.proto;l=220
|
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.
|
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
InputAudioConfig.Builder |
mergeFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
InputAudioConfig.Builder |
mergeFrom(InputAudioConfig other) |
InputAudioConfig.Builder |
mergeFrom(Message other) |
InputAudioConfig.Builder |
mergeUnknownFields(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 |
setDisableNoSpeechRecognizedEvent(boolean value)
Only used in [Participants.AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent] and
[Participants.StreamingAnalyzeContent][google.cloud.dialogflow.v2.Participants.StreamingAnalyzeContent].
|
InputAudioConfig.Builder |
setEnableWordInfo(boolean value)
If `true`, Dialogflow returns [SpeechWordInfo][google.cloud.dialogflow.v2.SpeechWordInfo] in
[StreamingRecognitionResult][google.cloud.dialogflow.v2.StreamingRecognitionResult] with information about the recognized speech
words, e.g.
|
InputAudioConfig.Builder |
setField(Descriptors.FieldDescriptor field,
Object value) |
InputAudioConfig.Builder |
setLanguageCode(String value)
Required.
|
InputAudioConfig.Builder |
setLanguageCodeBytes(ByteString value)
Required.
|
InputAudioConfig.Builder |
setModel(String value)
Which Speech model to select for the given request.
|
InputAudioConfig.Builder |
setModelBytes(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.v2.InputAudioConfig.model] to use.
|
InputAudioConfig.Builder |
setModelVariantValue(int value)
Which variant of the [Speech model][google.cloud.dialogflow.v2.InputAudioConfig.model] to use.
|
InputAudioConfig.Builder |
setPhraseHints(int index,
String value)
Deprecated.
google.cloud.dialogflow.v2.InputAudioConfig.phrase_hints is deprecated. See
google/cloud/dialogflow/v2/audio_config.proto;l=220
|
InputAudioConfig.Builder |
setRepeatedField(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(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, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeDelimitedFrom, mergeDelimitedFrom
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<InputAudioConfig.Builder>
public InputAudioConfig.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<InputAudioConfig.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<InputAudioConfig.Builder>
public InputAudioConfig getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public InputAudioConfig build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public InputAudioConfig buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public InputAudioConfig.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<InputAudioConfig.Builder>
public InputAudioConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<InputAudioConfig.Builder>
public InputAudioConfig.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<InputAudioConfig.Builder>
public InputAudioConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<InputAudioConfig.Builder>
public InputAudioConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<InputAudioConfig.Builder>
public InputAudioConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<InputAudioConfig.Builder>
public InputAudioConfig.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<InputAudioConfig.Builder>
public InputAudioConfig.Builder mergeFrom(InputAudioConfig other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<InputAudioConfig.Builder>
public InputAudioConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<InputAudioConfig.Builder>
IOException
public int getAudioEncodingValue()
Required. Audio encoding of the audio content to process.
.google.cloud.dialogflow.v2.AudioEncoding audio_encoding = 1;
getAudioEncodingValue
in interface InputAudioConfigOrBuilder
public InputAudioConfig.Builder setAudioEncodingValue(int value)
Required. Audio encoding of the audio content to process.
.google.cloud.dialogflow.v2.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.v2.AudioEncoding audio_encoding = 1;
getAudioEncoding
in interface InputAudioConfigOrBuilder
public InputAudioConfig.Builder setAudioEncoding(AudioEncoding value)
Required. Audio encoding of the audio content to process.
.google.cloud.dialogflow.v2.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.v2.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 InputAudioConfigOrBuilder
public 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 InputAudioConfigOrBuilder
public 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 InputAudioConfigOrBuilder
public 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(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.v2.SpeechWordInfo] in [StreamingRecognitionResult][google.cloud.dialogflow.v2.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 InputAudioConfigOrBuilder
public InputAudioConfig.Builder setEnableWordInfo(boolean value)
If `true`, Dialogflow returns [SpeechWordInfo][google.cloud.dialogflow.v2.SpeechWordInfo] in [StreamingRecognitionResult][google.cloud.dialogflow.v2.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.v2.SpeechWordInfo] in [StreamingRecognitionResult][google.cloud.dialogflow.v2.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 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 InputAudioConfigOrBuilder
index
- The index of the element to return.@Deprecated public 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 InputAudioConfigOrBuilder
index
- 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(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.v2.SpeechContext speech_contexts = 11;
getSpeechContextsList
in interface InputAudioConfigOrBuilder
public 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.v2.SpeechContext speech_contexts = 11;
getSpeechContextsCount
in interface InputAudioConfigOrBuilder
public 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.v2.SpeechContext speech_contexts = 11;
getSpeechContexts
in interface InputAudioConfigOrBuilder
public 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.v2.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.v2.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.v2.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.v2.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.v2.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.v2.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.v2.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.v2.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.v2.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.v2.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.v2.SpeechContext speech_contexts = 11;
getSpeechContextsOrBuilder
in interface InputAudioConfigOrBuilder
public 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.v2.SpeechContext speech_contexts = 11;
getSpeechContextsOrBuilderList
in interface InputAudioConfigOrBuilder
public 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.v2.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.v2.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.v2.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.
string model = 7;
getModel
in interface InputAudioConfigOrBuilder
public 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.
string model = 7;
getModelBytes
in interface InputAudioConfigOrBuilder
public 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.
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.
string model = 7;
public InputAudioConfig.Builder setModelBytes(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.
string model = 7;
value
- The bytes for model to set.public int getModelVariantValue()
Which variant of the [Speech model][google.cloud.dialogflow.v2.InputAudioConfig.model] to use.
.google.cloud.dialogflow.v2.SpeechModelVariant model_variant = 10;
getModelVariantValue
in interface InputAudioConfigOrBuilder
public InputAudioConfig.Builder setModelVariantValue(int value)
Which variant of the [Speech model][google.cloud.dialogflow.v2.InputAudioConfig.model] to use.
.google.cloud.dialogflow.v2.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.v2.InputAudioConfig.model] to use.
.google.cloud.dialogflow.v2.SpeechModelVariant model_variant = 10;
getModelVariant
in interface InputAudioConfigOrBuilder
public InputAudioConfig.Builder setModelVariant(SpeechModelVariant value)
Which variant of the [Speech model][google.cloud.dialogflow.v2.InputAudioConfig.model] to use.
.google.cloud.dialogflow.v2.SpeechModelVariant model_variant = 10;
value
- The modelVariant to set.public InputAudioConfig.Builder clearModelVariant()
Which variant of the [Speech model][google.cloud.dialogflow.v2.InputAudioConfig.model] to use.
.google.cloud.dialogflow.v2.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 InputAudioConfigOrBuilder
public 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.v2.Participants.AnalyzeContent] and [Participants.StreamingAnalyzeContent][google.cloud.dialogflow.v2.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 InputAudioConfigOrBuilder
public InputAudioConfig.Builder setDisableNoSpeechRecognizedEvent(boolean value)
Only used in [Participants.AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent] and [Participants.StreamingAnalyzeContent][google.cloud.dialogflow.v2.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.v2.Participants.AnalyzeContent] and [Participants.StreamingAnalyzeContent][google.cloud.dialogflow.v2.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 final InputAudioConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<InputAudioConfig.Builder>
public final InputAudioConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<InputAudioConfig.Builder>
Copyright © 2022 Google LLC. All rights reserved.