public final class InputAudioConfig extends com.google.protobuf.GeneratedMessageV3 implements InputAudioConfigOrBuilder
Instructs the speech recognizer on how to process the audio content.Protobuf type
google.cloud.dialogflow.cx.v3.InputAudioConfig| Modifier and Type | Class and Description |
|---|---|
static class |
InputAudioConfig.Builder
Instructs the speech recognizer on how to process the audio content.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
AUDIO_ENCODING_FIELD_NUMBER |
static int |
BARGE_IN_CONFIG_FIELD_NUMBER |
static int |
ENABLE_WORD_INFO_FIELD_NUMBER |
static int |
MODEL_FIELD_NUMBER |
static int |
MODEL_VARIANT_FIELD_NUMBER |
static int |
OPT_OUT_CONFORMER_MODEL_MIGRATION_FIELD_NUMBER |
static int |
PHRASE_HINTS_FIELD_NUMBER |
static int |
SAMPLE_RATE_HERTZ_FIELD_NUMBER |
static int |
SINGLE_UTTERANCE_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
AudioEncoding |
getAudioEncoding()
Required.
|
int |
getAudioEncodingValue()
Required.
|
BargeInConfig |
getBargeInConfig()
Configuration of barge-in behavior during the streaming of input audio.
|
BargeInConfigOrBuilder |
getBargeInConfigOrBuilder()
Configuration of barge-in behavior during the streaming of input audio.
|
static InputAudioConfig |
getDefaultInstance() |
InputAudioConfig |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
boolean |
getEnableWordInfo()
Optional.
|
String |
getModel()
Optional.
|
com.google.protobuf.ByteString |
getModelBytes()
Optional.
|
SpeechModelVariant |
getModelVariant()
Optional.
|
int |
getModelVariantValue()
Optional.
|
boolean |
getOptOutConformerModelMigration()
If `true`, the request will opt out for STT conformer model migration.
|
com.google.protobuf.Parser<InputAudioConfig> |
getParserForType() |
String |
getPhraseHints(int index)
Optional.
|
com.google.protobuf.ByteString |
getPhraseHintsBytes(int index)
Optional.
|
int |
getPhraseHintsCount()
Optional.
|
com.google.protobuf.ProtocolStringList |
getPhraseHintsList()
Optional.
|
int |
getSampleRateHertz()
Sample rate (in Hertz) of the audio content sent in the query.
|
int |
getSerializedSize() |
boolean |
getSingleUtterance()
Optional.
|
boolean |
hasBargeInConfig()
Configuration of barge-in behavior during the streaming of input audio.
|
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static InputAudioConfig.Builder |
newBuilder() |
static InputAudioConfig.Builder |
newBuilder(InputAudioConfig prototype) |
InputAudioConfig.Builder |
newBuilderForType() |
protected InputAudioConfig.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static InputAudioConfig |
parseDelimitedFrom(InputStream input) |
static InputAudioConfig |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static InputAudioConfig |
parseFrom(byte[] data) |
static InputAudioConfig |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static InputAudioConfig |
parseFrom(ByteBuffer data) |
static InputAudioConfig |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static InputAudioConfig |
parseFrom(com.google.protobuf.ByteString data) |
static InputAudioConfig |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static InputAudioConfig |
parseFrom(com.google.protobuf.CodedInputStream input) |
static InputAudioConfig |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static InputAudioConfig |
parseFrom(InputStream input) |
static InputAudioConfig |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<InputAudioConfig> |
parser() |
InputAudioConfig.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int AUDIO_ENCODING_FIELD_NUMBER
public static final int SAMPLE_RATE_HERTZ_FIELD_NUMBER
public static final int ENABLE_WORD_INFO_FIELD_NUMBER
public static final int PHRASE_HINTS_FIELD_NUMBER
public static final int MODEL_FIELD_NUMBER
public static final int MODEL_VARIANT_FIELD_NUMBER
public static final int SINGLE_UTTERANCE_FIELD_NUMBER
public static final int BARGE_IN_CONFIG_FIELD_NUMBER
public static final int OPT_OUT_CONFORMER_MODEL_MIGRATION_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public int getAudioEncodingValue()
Required. Audio encoding of the audio content to process.
.google.cloud.dialogflow.cx.v3.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED];
getAudioEncodingValue in interface InputAudioConfigOrBuilderpublic AudioEncoding getAudioEncoding()
Required. Audio encoding of the audio content to process.
.google.cloud.dialogflow.cx.v3.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED];
getAudioEncoding in interface InputAudioConfigOrBuilderpublic int getSampleRateHertz()
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 boolean getEnableWordInfo()
Optional. If `true`, Dialogflow returns [SpeechWordInfo][google.cloud.dialogflow.cx.v3.SpeechWordInfo] in [StreamingRecognitionResult][google.cloud.dialogflow.cx.v3.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 com.google.protobuf.ProtocolStringList getPhraseHintsList()
Optional. 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.
repeated string phrase_hints = 4;getPhraseHintsList in interface InputAudioConfigOrBuilderpublic int getPhraseHintsCount()
Optional. 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.
repeated string phrase_hints = 4;getPhraseHintsCount in interface InputAudioConfigOrBuilderpublic String getPhraseHints(int index)
Optional. 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.
repeated string phrase_hints = 4;getPhraseHints in interface InputAudioConfigOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getPhraseHintsBytes(int index)
Optional. 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.
repeated string phrase_hints = 4;getPhraseHintsBytes in interface InputAudioConfigOrBuilderindex - The index of the value to return.public String getModel()
Optional. Which Speech model to select for the given request. For more information, see [Speech models](https://cloud.google.com/dialogflow/cx/docs/concept/speech-models).
string model = 7;getModel in interface InputAudioConfigOrBuilderpublic com.google.protobuf.ByteString getModelBytes()
Optional. Which Speech model to select for the given request. For more information, see [Speech models](https://cloud.google.com/dialogflow/cx/docs/concept/speech-models).
string model = 7;getModelBytes in interface InputAudioConfigOrBuilderpublic int getModelVariantValue()
Optional. Which variant of the [Speech model][google.cloud.dialogflow.cx.v3.InputAudioConfig.model] to use.
.google.cloud.dialogflow.cx.v3.SpeechModelVariant model_variant = 10;getModelVariantValue in interface InputAudioConfigOrBuilderpublic SpeechModelVariant getModelVariant()
Optional. Which variant of the [Speech model][google.cloud.dialogflow.cx.v3.InputAudioConfig.model] to use.
.google.cloud.dialogflow.cx.v3.SpeechModelVariant model_variant = 10;getModelVariant in interface InputAudioConfigOrBuilderpublic boolean getSingleUtterance()
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.
bool single_utterance = 8;getSingleUtterance in interface InputAudioConfigOrBuilderpublic boolean hasBargeInConfig()
Configuration of barge-in behavior during the streaming of input audio.
.google.cloud.dialogflow.cx.v3.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.cx.v3.BargeInConfig barge_in_config = 15;getBargeInConfig in interface InputAudioConfigOrBuilderpublic BargeInConfigOrBuilder getBargeInConfigOrBuilder()
Configuration of barge-in behavior during the streaming of input audio.
.google.cloud.dialogflow.cx.v3.BargeInConfig barge_in_config = 15;getBargeInConfigOrBuilder in interface InputAudioConfigOrBuilderpublic boolean getOptOutConformerModelMigration()
If `true`, the request will opt out for STT conformer model migration. This field will be deprecated once force migration takes place in June 2024. Please refer to [Dialogflow CX Speech model migration](https://cloud.google.com/dialogflow/cx/docs/concept/speech-model-migration).
bool opt_out_conformer_model_migration = 26;getOptOutConformerModelMigration in interface InputAudioConfigOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static InputAudioConfig parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static InputAudioConfig parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static InputAudioConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static InputAudioConfig parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static InputAudioConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static InputAudioConfig parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static InputAudioConfig parseFrom(InputStream input) throws IOException
IOExceptionpublic static InputAudioConfig parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static InputAudioConfig parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static InputAudioConfig parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static InputAudioConfig parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static InputAudioConfig parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic InputAudioConfig.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static InputAudioConfig.Builder newBuilder()
public static InputAudioConfig.Builder newBuilder(InputAudioConfig prototype)
public InputAudioConfig.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected InputAudioConfig.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static InputAudioConfig getDefaultInstance()
public static com.google.protobuf.Parser<InputAudioConfig> parser()
public com.google.protobuf.Parser<InputAudioConfig> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public InputAudioConfig getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2025 Google LLC. All rights reserved.