Package com.google.cloud.speech.v2
Interface RecognitionConfigOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
RecognitionConfig,RecognitionConfig.Builder
@Generated
public interface RecognitionConfigOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionSpeech 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.Optional.Optional.Explicitly specified decoding parameters.Explicitly specified decoding parameters.Speech recognition features to enable.Speech recognition features to enable.getLanguageCodes(int index) Optional.com.google.protobuf.ByteStringgetLanguageCodesBytes(int index) Optional.intOptional.Optional.getModel()Optional.com.google.protobuf.ByteStringOptional.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.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
hasAutoDecodingConfig
boolean hasAutoDecodingConfig()Automatically detect decoding parameters. Preferred for supported formats.
.google.cloud.speech.v2.AutoDetectDecodingConfig auto_decoding_config = 7;- Returns:
- Whether the autoDecodingConfig field is set.
-
getAutoDecodingConfig
AutoDetectDecodingConfig getAutoDecodingConfig()Automatically detect decoding parameters. Preferred for supported formats.
.google.cloud.speech.v2.AutoDetectDecodingConfig auto_decoding_config = 7;- Returns:
- The autoDecodingConfig.
-
getAutoDecodingConfigOrBuilder
AutoDetectDecodingConfigOrBuilder getAutoDecodingConfigOrBuilder()Automatically detect decoding parameters. Preferred for supported formats.
.google.cloud.speech.v2.AutoDetectDecodingConfig auto_decoding_config = 7; -
hasExplicitDecodingConfig
boolean hasExplicitDecodingConfig()Explicitly specified decoding parameters. Required if using headerless PCM audio (linear16, mulaw, alaw).
.google.cloud.speech.v2.ExplicitDecodingConfig explicit_decoding_config = 8;- Returns:
- Whether the explicitDecodingConfig field is set.
-
getExplicitDecodingConfig
ExplicitDecodingConfig getExplicitDecodingConfig()Explicitly specified decoding parameters. Required if using headerless PCM audio (linear16, mulaw, alaw).
.google.cloud.speech.v2.ExplicitDecodingConfig explicit_decoding_config = 8;- Returns:
- The explicitDecodingConfig.
-
getExplicitDecodingConfigOrBuilder
ExplicitDecodingConfigOrBuilder getExplicitDecodingConfigOrBuilder()Explicitly specified decoding parameters. Required if using headerless PCM audio (linear16, mulaw, alaw).
.google.cloud.speech.v2.ExplicitDecodingConfig explicit_decoding_config = 8; -
getModel
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];- Returns:
- The model.
-
getModelBytes
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];- Returns:
- The bytes for model.
-
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];- Returns:
- A list containing the languageCodes.
-
getLanguageCodesCount
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];- 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];- Parameters:
index- The index of the element to return.- Returns:
- The languageCodes at the given index.
-
getLanguageCodesBytes
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];- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the languageCodes at the given index.
-
hasFeatures
boolean hasFeatures()Speech recognition features to enable.
.google.cloud.speech.v2.RecognitionFeatures features = 2;- Returns:
- Whether the features field is set.
-
getFeatures
RecognitionFeatures getFeatures()Speech recognition features to enable.
.google.cloud.speech.v2.RecognitionFeatures features = 2;- Returns:
- The features.
-
getFeaturesOrBuilder
RecognitionFeaturesOrBuilder getFeaturesOrBuilder()Speech recognition features to enable.
.google.cloud.speech.v2.RecognitionFeatures features = 2; -
hasAdaptation
boolean hasAdaptation()Speech adaptation context that weights recognizer predictions for specific words and phrases.
.google.cloud.speech.v2.SpeechAdaptation adaptation = 6;- Returns:
- Whether the adaptation field is set.
-
getAdaptation
SpeechAdaptation getAdaptation()Speech adaptation context that weights recognizer predictions for specific words and phrases.
.google.cloud.speech.v2.SpeechAdaptation adaptation = 6;- Returns:
- The adaptation.
-
getAdaptationOrBuilder
SpeechAdaptationOrBuilder getAdaptationOrBuilder()Speech adaptation context that weights recognizer predictions for specific words and phrases.
.google.cloud.speech.v2.SpeechAdaptation adaptation = 6; -
hasTranscriptNormalization
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];- Returns:
- Whether the transcriptNormalization field is set.
-
getTranscriptNormalization
TranscriptNormalization 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];- Returns:
- The transcriptNormalization.
-
getTranscriptNormalizationOrBuilder
TranscriptNormalizationOrBuilder 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]; -
hasTranslationConfig
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];- Returns:
- Whether the translationConfig field is set.
-
getTranslationConfig
TranslationConfig 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];- Returns:
- The translationConfig.
-
getTranslationConfigOrBuilder
TranslationConfigOrBuilder 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]; -
hasDenoiserConfig
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];- Returns:
- Whether the denoiserConfig field is set.
-
getDenoiserConfig
DenoiserConfig 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];- Returns:
- The denoiserConfig.
-
getDenoiserConfigOrBuilder
DenoiserConfigOrBuilder 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]; -
getDecodingConfigCase
RecognitionConfig.DecodingConfigCase getDecodingConfigCase()
-