Interface RecognitionConfigOrBuilder

  • All Superinterfaces:
    com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
    All Known Implementing Classes:
    RecognitionConfig, RecognitionConfig.Builder

    public interface RecognitionConfigOrBuilder
    extends com.google.protobuf.MessageOrBuilder
    • Method Detail

      • 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

        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];
        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

        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];
        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;