Package com.google.cloud.speech.v2
Class RecognitionConfig.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<RecognitionConfig.Builder>
com.google.cloud.speech.v2.RecognitionConfig.Builder
- All Implemented Interfaces:
RecognitionConfigOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- RecognitionConfig
public static final class RecognitionConfig.Builder
extends com.google.protobuf.GeneratedMessage.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-
Method Summary
Modifier and TypeMethodDescriptionaddAllLanguageCodes(Iterable<String> values) Optional.addLanguageCodes(String value) Optional.addLanguageCodesBytes(com.google.protobuf.ByteString value) Optional.build()clear()Speech adaptation context that weights recognizer predictions for specific words and phrases.Automatically detect decoding parameters.Optional.Explicitly specified decoding parameters.Speech recognition features to enable.Optional.Optional.Optional.Optional.Speech adaptation context that weights recognizer predictions for specific words and phrases.Speech adaptation context that weights recognizer predictions for specific words and phrases.Speech adaptation context that weights recognizer predictions for specific words and phrases.Automatically detect decoding parameters.Automatically detect decoding parameters.Automatically detect decoding parameters.Optional.Optional.Optional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorExplicitly specified decoding parameters.Explicitly specified decoding parameters.Explicitly specified decoding parameters.Speech recognition features to enable.Speech recognition features to enable.Speech recognition features to enable.getLanguageCodes(int index) Optional.com.google.protobuf.ByteStringgetLanguageCodesBytes(int index) Optional.intOptional.com.google.protobuf.ProtocolStringListOptional.getModel()Optional.com.google.protobuf.ByteStringOptional.Optional.Optional.Optional.Optional.Optional.Optional.booleanSpeech adaptation context that weights recognizer predictions for specific words and phrases.booleanAutomatically detect decoding parameters.booleanOptional.booleanExplicitly specified decoding parameters.booleanSpeech recognition features to enable.booleanOptional.booleanOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeAdaptation(SpeechAdaptation value) Speech adaptation context that weights recognizer predictions for specific words and phrases.Automatically detect decoding parameters.Optional.Explicitly specified decoding parameters.mergeFeatures(RecognitionFeatures value) Speech recognition features to enable.mergeFrom(RecognitionConfig other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Optional.Optional.setAdaptation(SpeechAdaptation value) Speech adaptation context that weights recognizer predictions for specific words and phrases.setAdaptation(SpeechAdaptation.Builder builderForValue) Speech adaptation context that weights recognizer predictions for specific words and phrases.Automatically detect decoding parameters.setAutoDecodingConfig(AutoDetectDecodingConfig.Builder builderForValue) Automatically detect decoding parameters.setDenoiserConfig(DenoiserConfig value) Optional.setDenoiserConfig(DenoiserConfig.Builder builderForValue) Optional.Explicitly specified decoding parameters.setExplicitDecodingConfig(ExplicitDecodingConfig.Builder builderForValue) Explicitly specified decoding parameters.setFeatures(RecognitionFeatures value) Speech recognition features to enable.setFeatures(RecognitionFeatures.Builder builderForValue) Speech recognition features to enable.setLanguageCodes(int index, String value) Optional.Optional.setModelBytes(com.google.protobuf.ByteString value) Optional.Optional.setTranscriptNormalization(TranscriptNormalization.Builder builderForValue) Optional.Optional.setTranslationConfig(TranslationConfig.Builder builderForValue) Optional.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<RecognitionConfig.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<RecognitionConfig.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<RecognitionConfig.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<RecognitionConfig.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<RecognitionConfig.Builder>
-
mergeFrom
public RecognitionConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<RecognitionConfig.Builder>- Throws:
IOException
-
getDecodingConfigCase
- Specified by:
getDecodingConfigCasein interfaceRecognitionConfigOrBuilder
-
clearDecodingConfig
-
hasAutoDecodingConfig
public boolean hasAutoDecodingConfig()Automatically detect decoding parameters. Preferred for supported formats.
.google.cloud.speech.v2.AutoDetectDecodingConfig auto_decoding_config = 7;- Specified by:
hasAutoDecodingConfigin interfaceRecognitionConfigOrBuilder- Returns:
- Whether the autoDecodingConfig field is set.
-
getAutoDecodingConfig
Automatically detect decoding parameters. Preferred for supported formats.
.google.cloud.speech.v2.AutoDetectDecodingConfig auto_decoding_config = 7;- Specified by:
getAutoDecodingConfigin interfaceRecognitionConfigOrBuilder- Returns:
- The autoDecodingConfig.
-
setAutoDecodingConfig
Automatically detect decoding parameters. Preferred for supported formats.
.google.cloud.speech.v2.AutoDetectDecodingConfig auto_decoding_config = 7; -
setAutoDecodingConfig
public RecognitionConfig.Builder setAutoDecodingConfig(AutoDetectDecodingConfig.Builder builderForValue) Automatically detect decoding parameters. Preferred for supported formats.
.google.cloud.speech.v2.AutoDetectDecodingConfig auto_decoding_config = 7; -
mergeAutoDecodingConfig
Automatically detect decoding parameters. Preferred for supported formats.
.google.cloud.speech.v2.AutoDetectDecodingConfig auto_decoding_config = 7; -
clearAutoDecodingConfig
Automatically detect decoding parameters. Preferred for supported formats.
.google.cloud.speech.v2.AutoDetectDecodingConfig auto_decoding_config = 7; -
getAutoDecodingConfigBuilder
Automatically detect decoding parameters. Preferred for supported formats.
.google.cloud.speech.v2.AutoDetectDecodingConfig auto_decoding_config = 7; -
getAutoDecodingConfigOrBuilder
Automatically detect decoding parameters. Preferred for supported formats.
.google.cloud.speech.v2.AutoDetectDecodingConfig auto_decoding_config = 7;- Specified by:
getAutoDecodingConfigOrBuilderin interfaceRecognitionConfigOrBuilder
-
hasExplicitDecodingConfig
public boolean hasExplicitDecodingConfig()Explicitly specified decoding parameters. Required if using headerless PCM audio (linear16, mulaw, alaw).
.google.cloud.speech.v2.ExplicitDecodingConfig explicit_decoding_config = 8;- Specified by:
hasExplicitDecodingConfigin interfaceRecognitionConfigOrBuilder- Returns:
- Whether the explicitDecodingConfig field is set.
-
getExplicitDecodingConfig
Explicitly specified decoding parameters. Required if using headerless PCM audio (linear16, mulaw, alaw).
.google.cloud.speech.v2.ExplicitDecodingConfig explicit_decoding_config = 8;- Specified by:
getExplicitDecodingConfigin interfaceRecognitionConfigOrBuilder- Returns:
- The explicitDecodingConfig.
-
setExplicitDecodingConfig
Explicitly specified decoding parameters. Required if using headerless PCM audio (linear16, mulaw, alaw).
.google.cloud.speech.v2.ExplicitDecodingConfig explicit_decoding_config = 8; -
setExplicitDecodingConfig
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; -
mergeExplicitDecodingConfig
Explicitly specified decoding parameters. Required if using headerless PCM audio (linear16, mulaw, alaw).
.google.cloud.speech.v2.ExplicitDecodingConfig explicit_decoding_config = 8; -
clearExplicitDecodingConfig
Explicitly specified decoding parameters. Required if using headerless PCM audio (linear16, mulaw, alaw).
.google.cloud.speech.v2.ExplicitDecodingConfig explicit_decoding_config = 8; -
getExplicitDecodingConfigBuilder
Explicitly specified decoding parameters. Required if using headerless PCM audio (linear16, mulaw, alaw).
.google.cloud.speech.v2.ExplicitDecodingConfig explicit_decoding_config = 8; -
getExplicitDecodingConfigOrBuilder
Explicitly specified decoding parameters. Required if using headerless PCM audio (linear16, mulaw, alaw).
.google.cloud.speech.v2.ExplicitDecodingConfig explicit_decoding_config = 8;- Specified by:
getExplicitDecodingConfigOrBuilderin interfaceRecognitionConfigOrBuilder
-
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];- Specified by:
getModelin interfaceRecognitionConfigOrBuilder- Returns:
- The model.
-
getModelBytes
public 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];- Specified by:
getModelBytesin interfaceRecognitionConfigOrBuilder- Returns:
- The bytes for model.
-
setModel
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];- Parameters:
value- The model to set.- Returns:
- This builder for chaining.
-
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];- Returns:
- This builder for chaining.
-
setModelBytes
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];- Parameters:
value- The bytes for model to set.- Returns:
- This builder for chaining.
-
getLanguageCodesList
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];- Specified by:
getLanguageCodesListin interfaceRecognitionConfigOrBuilder- Returns:
- A list containing the languageCodes.
-
getLanguageCodesCount
public 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];- Specified by:
getLanguageCodesCountin interfaceRecognitionConfigOrBuilder- Returns:
- The count of languageCodes.
-
getLanguageCodes
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];- Specified by:
getLanguageCodesin interfaceRecognitionConfigOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The languageCodes at the given index.
-
getLanguageCodesBytes
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];- Specified by:
getLanguageCodesBytesin interfaceRecognitionConfigOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the languageCodes at the given index.
-
setLanguageCodes
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];- Parameters:
index- The index to set the value at.value- The languageCodes to set.- Returns:
- This builder for chaining.
-
addLanguageCodes
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];- Parameters:
value- The languageCodes to add.- Returns:
- This builder for chaining.
-
addAllLanguageCodes
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];- Parameters:
values- The languageCodes to add.- Returns:
- This builder for chaining.
-
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];- Returns:
- This builder for chaining.
-
addLanguageCodesBytes
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];- Parameters:
value- The bytes of the languageCodes to add.- Returns:
- This builder for chaining.
-
hasFeatures
public boolean hasFeatures()Speech recognition features to enable.
.google.cloud.speech.v2.RecognitionFeatures features = 2;- Specified by:
hasFeaturesin interfaceRecognitionConfigOrBuilder- Returns:
- Whether the features field is set.
-
getFeatures
Speech recognition features to enable.
.google.cloud.speech.v2.RecognitionFeatures features = 2;- Specified by:
getFeaturesin interfaceRecognitionConfigOrBuilder- Returns:
- The features.
-
setFeatures
Speech recognition features to enable.
.google.cloud.speech.v2.RecognitionFeatures features = 2; -
setFeatures
Speech recognition features to enable.
.google.cloud.speech.v2.RecognitionFeatures features = 2; -
mergeFeatures
Speech recognition features to enable.
.google.cloud.speech.v2.RecognitionFeatures features = 2; -
clearFeatures
Speech recognition features to enable.
.google.cloud.speech.v2.RecognitionFeatures features = 2; -
getFeaturesBuilder
Speech recognition features to enable.
.google.cloud.speech.v2.RecognitionFeatures features = 2; -
getFeaturesOrBuilder
Speech recognition features to enable.
.google.cloud.speech.v2.RecognitionFeatures features = 2;- Specified by:
getFeaturesOrBuilderin interfaceRecognitionConfigOrBuilder
-
hasAdaptation
public boolean hasAdaptation()Speech adaptation context that weights recognizer predictions for specific words and phrases.
.google.cloud.speech.v2.SpeechAdaptation adaptation = 6;- Specified by:
hasAdaptationin interfaceRecognitionConfigOrBuilder- Returns:
- Whether the adaptation field is set.
-
getAdaptation
Speech adaptation context that weights recognizer predictions for specific words and phrases.
.google.cloud.speech.v2.SpeechAdaptation adaptation = 6;- Specified by:
getAdaptationin interfaceRecognitionConfigOrBuilder- Returns:
- The adaptation.
-
setAdaptation
Speech adaptation context that weights recognizer predictions for specific words and phrases.
.google.cloud.speech.v2.SpeechAdaptation adaptation = 6; -
setAdaptation
Speech adaptation context that weights recognizer predictions for specific words and phrases.
.google.cloud.speech.v2.SpeechAdaptation adaptation = 6; -
mergeAdaptation
Speech adaptation context that weights recognizer predictions for specific words and phrases.
.google.cloud.speech.v2.SpeechAdaptation adaptation = 6; -
clearAdaptation
Speech adaptation context that weights recognizer predictions for specific words and phrases.
.google.cloud.speech.v2.SpeechAdaptation adaptation = 6; -
getAdaptationBuilder
Speech adaptation context that weights recognizer predictions for specific words and phrases.
.google.cloud.speech.v2.SpeechAdaptation adaptation = 6; -
getAdaptationOrBuilder
Speech adaptation context that weights recognizer predictions for specific words and phrases.
.google.cloud.speech.v2.SpeechAdaptation adaptation = 6;- Specified by:
getAdaptationOrBuilderin interfaceRecognitionConfigOrBuilder
-
hasTranscriptNormalization
public boolean hasTranscriptNormalization()Optional. Use transcription normalization to automatically replace parts of the transcript with phrases of your choosing. For StreamingRecognize, this normalization only applies to stable partial transcripts (stability > 0.8) and final transcripts.
.google.cloud.speech.v2.TranscriptNormalization transcript_normalization = 11 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasTranscriptNormalizationin interfaceRecognitionConfigOrBuilder- Returns:
- Whether the transcriptNormalization field is set.
-
getTranscriptNormalization
Optional. Use transcription normalization to automatically replace parts of the transcript with phrases of your choosing. For StreamingRecognize, this normalization only applies to stable partial transcripts (stability > 0.8) and final transcripts.
.google.cloud.speech.v2.TranscriptNormalization transcript_normalization = 11 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getTranscriptNormalizationin interfaceRecognitionConfigOrBuilder- Returns:
- The transcriptNormalization.
-
setTranscriptNormalization
Optional. Use transcription normalization to automatically replace parts of the transcript with phrases of your choosing. For StreamingRecognize, this normalization only applies to stable partial transcripts (stability > 0.8) and final transcripts.
.google.cloud.speech.v2.TranscriptNormalization transcript_normalization = 11 [(.google.api.field_behavior) = OPTIONAL]; -
setTranscriptNormalization
public RecognitionConfig.Builder setTranscriptNormalization(TranscriptNormalization.Builder builderForValue) Optional. Use transcription normalization to automatically replace parts of the transcript with phrases of your choosing. For StreamingRecognize, this normalization only applies to stable partial transcripts (stability > 0.8) and final transcripts.
.google.cloud.speech.v2.TranscriptNormalization transcript_normalization = 11 [(.google.api.field_behavior) = OPTIONAL]; -
mergeTranscriptNormalization
Optional. Use transcription normalization to automatically replace parts of the transcript with phrases of your choosing. For StreamingRecognize, this normalization only applies to stable partial transcripts (stability > 0.8) and final transcripts.
.google.cloud.speech.v2.TranscriptNormalization transcript_normalization = 11 [(.google.api.field_behavior) = OPTIONAL]; -
clearTranscriptNormalization
Optional. Use transcription normalization to automatically replace parts of the transcript with phrases of your choosing. For StreamingRecognize, this normalization only applies to stable partial transcripts (stability > 0.8) and final transcripts.
.google.cloud.speech.v2.TranscriptNormalization transcript_normalization = 11 [(.google.api.field_behavior) = OPTIONAL]; -
getTranscriptNormalizationBuilder
Optional. Use transcription normalization to automatically replace parts of the transcript with phrases of your choosing. For StreamingRecognize, this normalization only applies to stable partial transcripts (stability > 0.8) and final transcripts.
.google.cloud.speech.v2.TranscriptNormalization transcript_normalization = 11 [(.google.api.field_behavior) = OPTIONAL]; -
getTranscriptNormalizationOrBuilder
Optional. Use transcription normalization to automatically replace parts of the transcript with phrases of your choosing. For StreamingRecognize, this normalization only applies to stable partial transcripts (stability > 0.8) and final transcripts.
.google.cloud.speech.v2.TranscriptNormalization transcript_normalization = 11 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getTranscriptNormalizationOrBuilderin interfaceRecognitionConfigOrBuilder
-
hasTranslationConfig
public boolean hasTranslationConfig()Optional. Optional configuration used to automatically run translation on the given audio to the desired language for supported models.
.google.cloud.speech.v2.TranslationConfig translation_config = 15 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasTranslationConfigin interfaceRecognitionConfigOrBuilder- Returns:
- Whether the translationConfig field is set.
-
getTranslationConfig
Optional. Optional configuration used to automatically run translation on the given audio to the desired language for supported models.
.google.cloud.speech.v2.TranslationConfig translation_config = 15 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getTranslationConfigin interfaceRecognitionConfigOrBuilder- Returns:
- The translationConfig.
-
setTranslationConfig
Optional. Optional configuration used to automatically run translation on the given audio to the desired language for supported models.
.google.cloud.speech.v2.TranslationConfig translation_config = 15 [(.google.api.field_behavior) = OPTIONAL]; -
setTranslationConfig
Optional. Optional configuration used to automatically run translation on the given audio to the desired language for supported models.
.google.cloud.speech.v2.TranslationConfig translation_config = 15 [(.google.api.field_behavior) = OPTIONAL]; -
mergeTranslationConfig
Optional. Optional configuration used to automatically run translation on the given audio to the desired language for supported models.
.google.cloud.speech.v2.TranslationConfig translation_config = 15 [(.google.api.field_behavior) = OPTIONAL]; -
clearTranslationConfig
Optional. Optional configuration used to automatically run translation on the given audio to the desired language for supported models.
.google.cloud.speech.v2.TranslationConfig translation_config = 15 [(.google.api.field_behavior) = OPTIONAL]; -
getTranslationConfigBuilder
Optional. Optional configuration used to automatically run translation on the given audio to the desired language for supported models.
.google.cloud.speech.v2.TranslationConfig translation_config = 15 [(.google.api.field_behavior) = OPTIONAL]; -
getTranslationConfigOrBuilder
Optional. Optional configuration used to automatically run translation on the given audio to the desired language for supported models.
.google.cloud.speech.v2.TranslationConfig translation_config = 15 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getTranslationConfigOrBuilderin interfaceRecognitionConfigOrBuilder
-
hasDenoiserConfig
public boolean hasDenoiserConfig()Optional. Optional denoiser config. May not be supported for all models and may have no effect.
.google.cloud.speech.v2.DenoiserConfig denoiser_config = 16 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasDenoiserConfigin interfaceRecognitionConfigOrBuilder- Returns:
- Whether the denoiserConfig field is set.
-
getDenoiserConfig
Optional. Optional denoiser config. May not be supported for all models and may have no effect.
.google.cloud.speech.v2.DenoiserConfig denoiser_config = 16 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDenoiserConfigin interfaceRecognitionConfigOrBuilder- Returns:
- The denoiserConfig.
-
setDenoiserConfig
Optional. Optional denoiser config. May not be supported for all models and may have no effect.
.google.cloud.speech.v2.DenoiserConfig denoiser_config = 16 [(.google.api.field_behavior) = OPTIONAL]; -
setDenoiserConfig
Optional. Optional denoiser config. May not be supported for all models and may have no effect.
.google.cloud.speech.v2.DenoiserConfig denoiser_config = 16 [(.google.api.field_behavior) = OPTIONAL]; -
mergeDenoiserConfig
Optional. Optional denoiser config. May not be supported for all models and may have no effect.
.google.cloud.speech.v2.DenoiserConfig denoiser_config = 16 [(.google.api.field_behavior) = OPTIONAL]; -
clearDenoiserConfig
Optional. Optional denoiser config. May not be supported for all models and may have no effect.
.google.cloud.speech.v2.DenoiserConfig denoiser_config = 16 [(.google.api.field_behavior) = OPTIONAL]; -
getDenoiserConfigBuilder
Optional. Optional denoiser config. May not be supported for all models and may have no effect.
.google.cloud.speech.v2.DenoiserConfig denoiser_config = 16 [(.google.api.field_behavior) = OPTIONAL]; -
getDenoiserConfigOrBuilder
Optional. Optional denoiser config. May not be supported for all models and may have no effect.
.google.cloud.speech.v2.DenoiserConfig denoiser_config = 16 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDenoiserConfigOrBuilderin interfaceRecognitionConfigOrBuilder
-