public interface RecognitionConfigOrBuilder
extends com.google.protobuf.MessageOrBuilder
| Modifier and Type | Method and Description |
|---|---|
SpeechAdaptation |
getAdaptation()
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.
|
AutoDetectDecodingConfigOrBuilder |
getAutoDecodingConfigOrBuilder()
Automatically detect decoding parameters.
|
RecognitionConfig.DecodingConfigCase |
getDecodingConfigCase() |
ExplicitDecodingConfig |
getExplicitDecodingConfig()
Explicitly specified decoding parameters.
|
ExplicitDecodingConfigOrBuilder |
getExplicitDecodingConfigOrBuilder()
Explicitly specified decoding parameters.
|
RecognitionFeatures |
getFeatures()
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.
|
List<String> |
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.
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofboolean hasAutoDecodingConfig()
Automatically detect decoding parameters. Preferred for supported formats.
.google.cloud.speech.v2.AutoDetectDecodingConfig auto_decoding_config = 7;AutoDetectDecodingConfig getAutoDecodingConfig()
Automatically detect decoding parameters. Preferred for supported formats.
.google.cloud.speech.v2.AutoDetectDecodingConfig auto_decoding_config = 7;AutoDetectDecodingConfigOrBuilder getAutoDecodingConfigOrBuilder()
Automatically detect decoding parameters. Preferred for supported formats.
.google.cloud.speech.v2.AutoDetectDecodingConfig auto_decoding_config = 7;boolean hasExplicitDecodingConfig()
Explicitly specified decoding parameters. Required if using headerless PCM audio (linear16, mulaw, alaw).
.google.cloud.speech.v2.ExplicitDecodingConfig explicit_decoding_config = 8;ExplicitDecodingConfig getExplicitDecodingConfig()
Explicitly specified decoding parameters. Required if using headerless PCM audio (linear16, mulaw, alaw).
.google.cloud.speech.v2.ExplicitDecodingConfig explicit_decoding_config = 8;ExplicitDecodingConfigOrBuilder getExplicitDecodingConfigOrBuilder()
Explicitly specified decoding parameters. Required if using headerless PCM audio (linear16, mulaw, alaw).
.google.cloud.speech.v2.ExplicitDecodingConfig explicit_decoding_config = 8;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];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];List<String> 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];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];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];index - The index of the element to return.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];index - The index of the value to return.boolean hasFeatures()
Speech recognition features to enable.
.google.cloud.speech.v2.RecognitionFeatures features = 2;RecognitionFeatures getFeatures()
Speech recognition features to enable.
.google.cloud.speech.v2.RecognitionFeatures features = 2;RecognitionFeaturesOrBuilder getFeaturesOrBuilder()
Speech recognition features to enable.
.google.cloud.speech.v2.RecognitionFeatures features = 2;boolean hasAdaptation()
Speech adaptation context that weights recognizer predictions for specific words and phrases.
.google.cloud.speech.v2.SpeechAdaptation adaptation = 6;SpeechAdaptation getAdaptation()
Speech adaptation context that weights recognizer predictions for specific words and phrases.
.google.cloud.speech.v2.SpeechAdaptation adaptation = 6;SpeechAdaptationOrBuilder getAdaptationOrBuilder()
Speech adaptation context that weights recognizer predictions for specific words and phrases.
.google.cloud.speech.v2.SpeechAdaptation adaptation = 6;RecognitionConfig.DecodingConfigCase getDecodingConfigCase()
Copyright © 2023 Google LLC. All rights reserved.