public static final class RecognitionConfig.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<RecognitionConfig.Builder> implements RecognitionConfigOrBuilder
Provides information to the Recognizer that specifies how to process the recognition request.Protobuf type
google.cloud.speech.v2.RecognitionConfig| Modifier and Type | Method and Description |
|---|---|
RecognitionConfig.Builder |
addAllLanguageCodes(Iterable<String> values)
Optional.
|
RecognitionConfig.Builder |
addLanguageCodes(String value)
Optional.
|
RecognitionConfig.Builder |
addLanguageCodesBytes(com.google.protobuf.ByteString value)
Optional.
|
RecognitionConfig.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
RecognitionConfig |
build() |
RecognitionConfig |
buildPartial() |
RecognitionConfig.Builder |
clear() |
RecognitionConfig.Builder |
clearAdaptation()
Speech adaptation context that weights recognizer predictions for specific
words and phrases.
|
RecognitionConfig.Builder |
clearAutoDecodingConfig()
Automatically detect decoding parameters.
|
RecognitionConfig.Builder |
clearDecodingConfig() |
RecognitionConfig.Builder |
clearExplicitDecodingConfig()
Explicitly specified decoding parameters.
|
RecognitionConfig.Builder |
clearFeatures()
Speech recognition features to enable.
|
RecognitionConfig.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
RecognitionConfig.Builder |
clearLanguageCodes()
Optional.
|
RecognitionConfig.Builder |
clearModel()
Optional.
|
RecognitionConfig.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
RecognitionConfig.Builder |
clone() |
SpeechAdaptation |
getAdaptation()
Speech adaptation context that weights recognizer predictions for specific
words and phrases.
|
SpeechAdaptation.Builder |
getAdaptationBuilder()
Speech adaptation context that weights recognizer predictions for specific
words and phrases.
|
SpeechAdaptationOrBuilder |
getAdaptationOrBuilder()
Speech adaptation context that weights recognizer predictions for specific
words and phrases.
|
AutoDetectDecodingConfig |
getAutoDecodingConfig()
Automatically detect decoding parameters.
|
AutoDetectDecodingConfig.Builder |
getAutoDecodingConfigBuilder()
Automatically detect decoding parameters.
|
AutoDetectDecodingConfigOrBuilder |
getAutoDecodingConfigOrBuilder()
Automatically detect decoding parameters.
|
RecognitionConfig.DecodingConfigCase |
getDecodingConfigCase() |
RecognitionConfig |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
ExplicitDecodingConfig |
getExplicitDecodingConfig()
Explicitly specified decoding parameters.
|
ExplicitDecodingConfig.Builder |
getExplicitDecodingConfigBuilder()
Explicitly specified decoding parameters.
|
ExplicitDecodingConfigOrBuilder |
getExplicitDecodingConfigOrBuilder()
Explicitly specified decoding parameters.
|
RecognitionFeatures |
getFeatures()
Speech recognition features to enable.
|
RecognitionFeatures.Builder |
getFeaturesBuilder()
Speech recognition features to enable.
|
RecognitionFeaturesOrBuilder |
getFeaturesOrBuilder()
Speech recognition features to enable.
|
String |
getLanguageCodes(int index)
Optional.
|
com.google.protobuf.ByteString |
getLanguageCodesBytes(int index)
Optional.
|
int |
getLanguageCodesCount()
Optional.
|
com.google.protobuf.ProtocolStringList |
getLanguageCodesList()
Optional.
|
String |
getModel()
Optional.
|
com.google.protobuf.ByteString |
getModelBytes()
Optional.
|
boolean |
hasAdaptation()
Speech adaptation context that weights recognizer predictions for specific
words and phrases.
|
boolean |
hasAutoDecodingConfig()
Automatically detect decoding parameters.
|
boolean |
hasExplicitDecodingConfig()
Explicitly specified decoding parameters.
|
boolean |
hasFeatures()
Speech recognition features to enable.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
RecognitionConfig.Builder |
mergeAdaptation(SpeechAdaptation value)
Speech adaptation context that weights recognizer predictions for specific
words and phrases.
|
RecognitionConfig.Builder |
mergeAutoDecodingConfig(AutoDetectDecodingConfig value)
Automatically detect decoding parameters.
|
RecognitionConfig.Builder |
mergeExplicitDecodingConfig(ExplicitDecodingConfig value)
Explicitly specified decoding parameters.
|
RecognitionConfig.Builder |
mergeFeatures(RecognitionFeatures value)
Speech recognition features to enable.
|
RecognitionConfig.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
RecognitionConfig.Builder |
mergeFrom(com.google.protobuf.Message other) |
RecognitionConfig.Builder |
mergeFrom(RecognitionConfig other) |
RecognitionConfig.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
RecognitionConfig.Builder |
setAdaptation(SpeechAdaptation.Builder builderForValue)
Speech adaptation context that weights recognizer predictions for specific
words and phrases.
|
RecognitionConfig.Builder |
setAdaptation(SpeechAdaptation value)
Speech adaptation context that weights recognizer predictions for specific
words and phrases.
|
RecognitionConfig.Builder |
setAutoDecodingConfig(AutoDetectDecodingConfig.Builder builderForValue)
Automatically detect decoding parameters.
|
RecognitionConfig.Builder |
setAutoDecodingConfig(AutoDetectDecodingConfig value)
Automatically detect decoding parameters.
|
RecognitionConfig.Builder |
setExplicitDecodingConfig(ExplicitDecodingConfig.Builder builderForValue)
Explicitly specified decoding parameters.
|
RecognitionConfig.Builder |
setExplicitDecodingConfig(ExplicitDecodingConfig value)
Explicitly specified decoding parameters.
|
RecognitionConfig.Builder |
setFeatures(RecognitionFeatures.Builder builderForValue)
Speech recognition features to enable.
|
RecognitionConfig.Builder |
setFeatures(RecognitionFeatures value)
Speech recognition features to enable.
|
RecognitionConfig.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
RecognitionConfig.Builder |
setLanguageCodes(int index,
String value)
Optional.
|
RecognitionConfig.Builder |
setModel(String value)
Optional.
|
RecognitionConfig.Builder |
setModelBytes(com.google.protobuf.ByteString value)
Optional.
|
RecognitionConfig.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
RecognitionConfig.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, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<RecognitionConfig.Builder>public RecognitionConfig.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<RecognitionConfig.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<RecognitionConfig.Builder>public RecognitionConfig getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic RecognitionConfig build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic RecognitionConfig buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic RecognitionConfig.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<RecognitionConfig.Builder>public RecognitionConfig.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<RecognitionConfig.Builder>public RecognitionConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<RecognitionConfig.Builder>public RecognitionConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<RecognitionConfig.Builder>public RecognitionConfig.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<RecognitionConfig.Builder>public RecognitionConfig.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<RecognitionConfig.Builder>public RecognitionConfig.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<RecognitionConfig.Builder>public RecognitionConfig.Builder mergeFrom(RecognitionConfig other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<RecognitionConfig.Builder>public RecognitionConfig.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<RecognitionConfig.Builder>IOExceptionpublic RecognitionConfig.DecodingConfigCase getDecodingConfigCase()
getDecodingConfigCase in interface RecognitionConfigOrBuilderpublic RecognitionConfig.Builder clearDecodingConfig()
public boolean hasAutoDecodingConfig()
Automatically detect decoding parameters. Preferred for supported formats.
.google.cloud.speech.v2.AutoDetectDecodingConfig auto_decoding_config = 7;hasAutoDecodingConfig in interface RecognitionConfigOrBuilderpublic AutoDetectDecodingConfig getAutoDecodingConfig()
Automatically detect decoding parameters. Preferred for supported formats.
.google.cloud.speech.v2.AutoDetectDecodingConfig auto_decoding_config = 7;getAutoDecodingConfig in interface RecognitionConfigOrBuilderpublic RecognitionConfig.Builder setAutoDecodingConfig(AutoDetectDecodingConfig value)
Automatically detect decoding parameters. Preferred for supported formats.
.google.cloud.speech.v2.AutoDetectDecodingConfig auto_decoding_config = 7;public RecognitionConfig.Builder setAutoDecodingConfig(AutoDetectDecodingConfig.Builder builderForValue)
Automatically detect decoding parameters. Preferred for supported formats.
.google.cloud.speech.v2.AutoDetectDecodingConfig auto_decoding_config = 7;public RecognitionConfig.Builder mergeAutoDecodingConfig(AutoDetectDecodingConfig value)
Automatically detect decoding parameters. Preferred for supported formats.
.google.cloud.speech.v2.AutoDetectDecodingConfig auto_decoding_config = 7;public RecognitionConfig.Builder clearAutoDecodingConfig()
Automatically detect decoding parameters. Preferred for supported formats.
.google.cloud.speech.v2.AutoDetectDecodingConfig auto_decoding_config = 7;public AutoDetectDecodingConfig.Builder getAutoDecodingConfigBuilder()
Automatically detect decoding parameters. Preferred for supported formats.
.google.cloud.speech.v2.AutoDetectDecodingConfig auto_decoding_config = 7;public AutoDetectDecodingConfigOrBuilder getAutoDecodingConfigOrBuilder()
Automatically detect decoding parameters. Preferred for supported formats.
.google.cloud.speech.v2.AutoDetectDecodingConfig auto_decoding_config = 7;getAutoDecodingConfigOrBuilder in interface RecognitionConfigOrBuilderpublic boolean hasExplicitDecodingConfig()
Explicitly specified decoding parameters. Required if using headerless PCM audio (linear16, mulaw, alaw).
.google.cloud.speech.v2.ExplicitDecodingConfig explicit_decoding_config = 8;hasExplicitDecodingConfig in interface RecognitionConfigOrBuilderpublic ExplicitDecodingConfig getExplicitDecodingConfig()
Explicitly specified decoding parameters. Required if using headerless PCM audio (linear16, mulaw, alaw).
.google.cloud.speech.v2.ExplicitDecodingConfig explicit_decoding_config = 8;getExplicitDecodingConfig in interface RecognitionConfigOrBuilderpublic RecognitionConfig.Builder setExplicitDecodingConfig(ExplicitDecodingConfig value)
Explicitly specified decoding parameters. Required if using headerless PCM audio (linear16, mulaw, alaw).
.google.cloud.speech.v2.ExplicitDecodingConfig explicit_decoding_config = 8;public RecognitionConfig.Builder setExplicitDecodingConfig(ExplicitDecodingConfig.Builder builderForValue)
Explicitly specified decoding parameters. Required if using headerless PCM audio (linear16, mulaw, alaw).
.google.cloud.speech.v2.ExplicitDecodingConfig explicit_decoding_config = 8;public RecognitionConfig.Builder mergeExplicitDecodingConfig(ExplicitDecodingConfig value)
Explicitly specified decoding parameters. Required if using headerless PCM audio (linear16, mulaw, alaw).
.google.cloud.speech.v2.ExplicitDecodingConfig explicit_decoding_config = 8;public RecognitionConfig.Builder clearExplicitDecodingConfig()
Explicitly specified decoding parameters. Required if using headerless PCM audio (linear16, mulaw, alaw).
.google.cloud.speech.v2.ExplicitDecodingConfig explicit_decoding_config = 8;public ExplicitDecodingConfig.Builder getExplicitDecodingConfigBuilder()
Explicitly specified decoding parameters. Required if using headerless PCM audio (linear16, mulaw, alaw).
.google.cloud.speech.v2.ExplicitDecodingConfig explicit_decoding_config = 8;public ExplicitDecodingConfigOrBuilder getExplicitDecodingConfigOrBuilder()
Explicitly specified decoding parameters. Required if using headerless PCM audio (linear16, mulaw, alaw).
.google.cloud.speech.v2.ExplicitDecodingConfig explicit_decoding_config = 8;getExplicitDecodingConfigOrBuilder in interface RecognitionConfigOrBuilderpublic String getModel()
Optional. Which model to use for recognition requests. Select the model best suited to your domain to get best results. Guidance for choosing which model to use can be found in the [Transcription Models Documentation](https://cloud.google.com/speech-to-text/v2/docs/transcription-model) and the models supported in each region can be found in the [Table Of Supported Models](https://cloud.google.com/speech-to-text/v2/docs/speech-to-text-supported-languages).
string model = 9 [(.google.api.field_behavior) = OPTIONAL];getModel in interface RecognitionConfigOrBuilderpublic com.google.protobuf.ByteString getModelBytes()
Optional. Which model to use for recognition requests. Select the model best suited to your domain to get best results. Guidance for choosing which model to use can be found in the [Transcription Models Documentation](https://cloud.google.com/speech-to-text/v2/docs/transcription-model) and the models supported in each region can be found in the [Table Of Supported Models](https://cloud.google.com/speech-to-text/v2/docs/speech-to-text-supported-languages).
string model = 9 [(.google.api.field_behavior) = OPTIONAL];getModelBytes in interface RecognitionConfigOrBuilderpublic RecognitionConfig.Builder setModel(String value)
Optional. Which model to use for recognition requests. Select the model best suited to your domain to get best results. Guidance for choosing which model to use can be found in the [Transcription Models Documentation](https://cloud.google.com/speech-to-text/v2/docs/transcription-model) and the models supported in each region can be found in the [Table Of Supported Models](https://cloud.google.com/speech-to-text/v2/docs/speech-to-text-supported-languages).
string model = 9 [(.google.api.field_behavior) = OPTIONAL];value - The model to set.public RecognitionConfig.Builder clearModel()
Optional. Which model to use for recognition requests. Select the model best suited to your domain to get best results. Guidance for choosing which model to use can be found in the [Transcription Models Documentation](https://cloud.google.com/speech-to-text/v2/docs/transcription-model) and the models supported in each region can be found in the [Table Of Supported Models](https://cloud.google.com/speech-to-text/v2/docs/speech-to-text-supported-languages).
string model = 9 [(.google.api.field_behavior) = OPTIONAL];public RecognitionConfig.Builder setModelBytes(com.google.protobuf.ByteString value)
Optional. Which model to use for recognition requests. Select the model best suited to your domain to get best results. Guidance for choosing which model to use can be found in the [Transcription Models Documentation](https://cloud.google.com/speech-to-text/v2/docs/transcription-model) and the models supported in each region can be found in the [Table Of Supported Models](https://cloud.google.com/speech-to-text/v2/docs/speech-to-text-supported-languages).
string model = 9 [(.google.api.field_behavior) = OPTIONAL];value - The bytes for model to set.public com.google.protobuf.ProtocolStringList getLanguageCodesList()
Optional. The language of the supplied audio as a [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. Language tags are normalized to BCP-47 before they are used eg "en-us" becomes "en-US". Supported languages for each model are listed in the [Table of Supported Models](https://cloud.google.com/speech-to-text/v2/docs/speech-to-text-supported-languages). If additional languages are provided, recognition result will contain recognition in the most likely language detected. The recognition result will include the language tag of the language detected in the audio.
repeated string language_codes = 10 [(.google.api.field_behavior) = OPTIONAL];getLanguageCodesList in interface RecognitionConfigOrBuilderpublic int getLanguageCodesCount()
Optional. The language of the supplied audio as a [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. Language tags are normalized to BCP-47 before they are used eg "en-us" becomes "en-US". Supported languages for each model are listed in the [Table of Supported Models](https://cloud.google.com/speech-to-text/v2/docs/speech-to-text-supported-languages). If additional languages are provided, recognition result will contain recognition in the most likely language detected. The recognition result will include the language tag of the language detected in the audio.
repeated string language_codes = 10 [(.google.api.field_behavior) = OPTIONAL];getLanguageCodesCount in interface RecognitionConfigOrBuilderpublic String getLanguageCodes(int index)
Optional. The language of the supplied audio as a [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. Language tags are normalized to BCP-47 before they are used eg "en-us" becomes "en-US". Supported languages for each model are listed in the [Table of Supported Models](https://cloud.google.com/speech-to-text/v2/docs/speech-to-text-supported-languages). If additional languages are provided, recognition result will contain recognition in the most likely language detected. The recognition result will include the language tag of the language detected in the audio.
repeated string language_codes = 10 [(.google.api.field_behavior) = OPTIONAL];getLanguageCodes in interface RecognitionConfigOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getLanguageCodesBytes(int index)
Optional. The language of the supplied audio as a [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. Language tags are normalized to BCP-47 before they are used eg "en-us" becomes "en-US". Supported languages for each model are listed in the [Table of Supported Models](https://cloud.google.com/speech-to-text/v2/docs/speech-to-text-supported-languages). If additional languages are provided, recognition result will contain recognition in the most likely language detected. The recognition result will include the language tag of the language detected in the audio.
repeated string language_codes = 10 [(.google.api.field_behavior) = OPTIONAL];getLanguageCodesBytes in interface RecognitionConfigOrBuilderindex - The index of the value to return.public RecognitionConfig.Builder setLanguageCodes(int index, String value)
Optional. The language of the supplied audio as a [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. Language tags are normalized to BCP-47 before they are used eg "en-us" becomes "en-US". Supported languages for each model are listed in the [Table of Supported Models](https://cloud.google.com/speech-to-text/v2/docs/speech-to-text-supported-languages). If additional languages are provided, recognition result will contain recognition in the most likely language detected. The recognition result will include the language tag of the language detected in the audio.
repeated string language_codes = 10 [(.google.api.field_behavior) = OPTIONAL];index - The index to set the value at.value - The languageCodes to set.public RecognitionConfig.Builder addLanguageCodes(String value)
Optional. The language of the supplied audio as a [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. Language tags are normalized to BCP-47 before they are used eg "en-us" becomes "en-US". Supported languages for each model are listed in the [Table of Supported Models](https://cloud.google.com/speech-to-text/v2/docs/speech-to-text-supported-languages). If additional languages are provided, recognition result will contain recognition in the most likely language detected. The recognition result will include the language tag of the language detected in the audio.
repeated string language_codes = 10 [(.google.api.field_behavior) = OPTIONAL];value - The languageCodes to add.public RecognitionConfig.Builder addAllLanguageCodes(Iterable<String> values)
Optional. The language of the supplied audio as a [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. Language tags are normalized to BCP-47 before they are used eg "en-us" becomes "en-US". Supported languages for each model are listed in the [Table of Supported Models](https://cloud.google.com/speech-to-text/v2/docs/speech-to-text-supported-languages). If additional languages are provided, recognition result will contain recognition in the most likely language detected. The recognition result will include the language tag of the language detected in the audio.
repeated string language_codes = 10 [(.google.api.field_behavior) = OPTIONAL];values - The languageCodes to add.public RecognitionConfig.Builder clearLanguageCodes()
Optional. The language of the supplied audio as a [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. Language tags are normalized to BCP-47 before they are used eg "en-us" becomes "en-US". Supported languages for each model are listed in the [Table of Supported Models](https://cloud.google.com/speech-to-text/v2/docs/speech-to-text-supported-languages). If additional languages are provided, recognition result will contain recognition in the most likely language detected. The recognition result will include the language tag of the language detected in the audio.
repeated string language_codes = 10 [(.google.api.field_behavior) = OPTIONAL];public RecognitionConfig.Builder addLanguageCodesBytes(com.google.protobuf.ByteString value)
Optional. The language of the supplied audio as a [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. Language tags are normalized to BCP-47 before they are used eg "en-us" becomes "en-US". Supported languages for each model are listed in the [Table of Supported Models](https://cloud.google.com/speech-to-text/v2/docs/speech-to-text-supported-languages). If additional languages are provided, recognition result will contain recognition in the most likely language detected. The recognition result will include the language tag of the language detected in the audio.
repeated string language_codes = 10 [(.google.api.field_behavior) = OPTIONAL];value - The bytes of the languageCodes to add.public boolean hasFeatures()
Speech recognition features to enable.
.google.cloud.speech.v2.RecognitionFeatures features = 2;hasFeatures in interface RecognitionConfigOrBuilderpublic RecognitionFeatures getFeatures()
Speech recognition features to enable.
.google.cloud.speech.v2.RecognitionFeatures features = 2;getFeatures in interface RecognitionConfigOrBuilderpublic RecognitionConfig.Builder setFeatures(RecognitionFeatures value)
Speech recognition features to enable.
.google.cloud.speech.v2.RecognitionFeatures features = 2;public RecognitionConfig.Builder setFeatures(RecognitionFeatures.Builder builderForValue)
Speech recognition features to enable.
.google.cloud.speech.v2.RecognitionFeatures features = 2;public RecognitionConfig.Builder mergeFeatures(RecognitionFeatures value)
Speech recognition features to enable.
.google.cloud.speech.v2.RecognitionFeatures features = 2;public RecognitionConfig.Builder clearFeatures()
Speech recognition features to enable.
.google.cloud.speech.v2.RecognitionFeatures features = 2;public RecognitionFeatures.Builder getFeaturesBuilder()
Speech recognition features to enable.
.google.cloud.speech.v2.RecognitionFeatures features = 2;public RecognitionFeaturesOrBuilder getFeaturesOrBuilder()
Speech recognition features to enable.
.google.cloud.speech.v2.RecognitionFeatures features = 2;getFeaturesOrBuilder in interface RecognitionConfigOrBuilderpublic boolean hasAdaptation()
Speech adaptation context that weights recognizer predictions for specific words and phrases.
.google.cloud.speech.v2.SpeechAdaptation adaptation = 6;hasAdaptation in interface RecognitionConfigOrBuilderpublic SpeechAdaptation getAdaptation()
Speech adaptation context that weights recognizer predictions for specific words and phrases.
.google.cloud.speech.v2.SpeechAdaptation adaptation = 6;getAdaptation in interface RecognitionConfigOrBuilderpublic RecognitionConfig.Builder setAdaptation(SpeechAdaptation value)
Speech adaptation context that weights recognizer predictions for specific words and phrases.
.google.cloud.speech.v2.SpeechAdaptation adaptation = 6;public RecognitionConfig.Builder setAdaptation(SpeechAdaptation.Builder builderForValue)
Speech adaptation context that weights recognizer predictions for specific words and phrases.
.google.cloud.speech.v2.SpeechAdaptation adaptation = 6;public RecognitionConfig.Builder mergeAdaptation(SpeechAdaptation value)
Speech adaptation context that weights recognizer predictions for specific words and phrases.
.google.cloud.speech.v2.SpeechAdaptation adaptation = 6;public RecognitionConfig.Builder clearAdaptation()
Speech adaptation context that weights recognizer predictions for specific words and phrases.
.google.cloud.speech.v2.SpeechAdaptation adaptation = 6;public SpeechAdaptation.Builder getAdaptationBuilder()
Speech adaptation context that weights recognizer predictions for specific words and phrases.
.google.cloud.speech.v2.SpeechAdaptation adaptation = 6;public SpeechAdaptationOrBuilder getAdaptationOrBuilder()
Speech adaptation context that weights recognizer predictions for specific words and phrases.
.google.cloud.speech.v2.SpeechAdaptation adaptation = 6;getAdaptationOrBuilder in interface RecognitionConfigOrBuilderpublic final RecognitionConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<RecognitionConfig.Builder>public final RecognitionConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<RecognitionConfig.Builder>Copyright © 2023 Google LLC. All rights reserved.