Interface SpeechToTextConfigOrBuilder

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

@Generated public interface SpeechToTextConfigOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    Audio encoding of the audio content to process.
    int
    Audio encoding of the audio content to process.
    boolean
    If `true`, Dialogflow returns [SpeechWordInfo][google.cloud.dialogflow.v2.SpeechWordInfo] in [StreamingRecognitionResult][google.cloud.dialogflow.v2.StreamingRecognitionResult] with information about the recognized speech words, e.g. start and end time offsets.
    The language of the supplied audio.
    com.google.protobuf.ByteString
    The language of the supplied audio.
    Which Speech model to select.
    com.google.protobuf.ByteString
    Which Speech model to select.
    getPhraseSets(int index)
    List of names of Cloud Speech phrase sets that are used for transcription.
    com.google.protobuf.ByteString
    getPhraseSetsBytes(int index)
    List of names of Cloud Speech phrase sets that are used for transcription.
    int
    List of names of Cloud Speech phrase sets that are used for transcription.
    List of names of Cloud Speech phrase sets that are used for transcription.
    int
    Sample rate (in Hertz) of the audio content sent in the query.
    The speech model used in speech to text.
    int
    The speech model used in speech to text.
    boolean
    Use timeout based endpointing, interpreting endpointer sensitivity as seconds of timeout value.

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • getSpeechModelVariantValue

      int getSpeechModelVariantValue()
       The speech model used in speech to text.
       `SPEECH_MODEL_VARIANT_UNSPECIFIED`, `USE_BEST_AVAILABLE` will be treated as
       `USE_ENHANCED`. It can be overridden in
       [AnalyzeContentRequest][google.cloud.dialogflow.v2.AnalyzeContentRequest]
       and
       [StreamingAnalyzeContentRequest][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest]
       request. If enhanced model variant is specified and an enhanced version of
       the specified model for the language does not exist, then it would emit an
       error.
       
      .google.cloud.dialogflow.v2.SpeechModelVariant speech_model_variant = 1;
      Returns:
      The enum numeric value on the wire for speechModelVariant.
    • getSpeechModelVariant

      SpeechModelVariant getSpeechModelVariant()
       The speech model used in speech to text.
       `SPEECH_MODEL_VARIANT_UNSPECIFIED`, `USE_BEST_AVAILABLE` will be treated as
       `USE_ENHANCED`. It can be overridden in
       [AnalyzeContentRequest][google.cloud.dialogflow.v2.AnalyzeContentRequest]
       and
       [StreamingAnalyzeContentRequest][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest]
       request. If enhanced model variant is specified and an enhanced version of
       the specified model for the language does not exist, then it would emit an
       error.
       
      .google.cloud.dialogflow.v2.SpeechModelVariant speech_model_variant = 1;
      Returns:
      The speechModelVariant.
    • getModel

      String getModel()
       Which Speech model to select. Select the
       model best suited to your domain to get best results. If a model is not
       explicitly specified, then Dialogflow auto-selects a model based on other
       parameters in the SpeechToTextConfig and Agent settings.
       If enhanced speech model is enabled for the agent and an enhanced
       version of the specified model for the language does not exist, then the
       speech is recognized using the standard version of the specified model.
       Refer to
       [Cloud Speech API
       documentation](https://cloud.google.com/speech-to-text/docs/basics#select-model)
       for more details.
       If you specify a model, the following models typically have the best
       performance:
      
       - phone_call (best for Agent Assist and telephony)
       - latest_short (best for Dialogflow non-telephony)
       - command_and_search
      
       Leave this field unspecified to use
       [Agent Speech
       settings](https://cloud.google.com/dialogflow/cx/docs/concept/agent#settings-speech)
       for model selection.
       
      string model = 2;
      Returns:
      The model.
    • getModelBytes

      com.google.protobuf.ByteString getModelBytes()
       Which Speech model to select. Select the
       model best suited to your domain to get best results. If a model is not
       explicitly specified, then Dialogflow auto-selects a model based on other
       parameters in the SpeechToTextConfig and Agent settings.
       If enhanced speech model is enabled for the agent and an enhanced
       version of the specified model for the language does not exist, then the
       speech is recognized using the standard version of the specified model.
       Refer to
       [Cloud Speech API
       documentation](https://cloud.google.com/speech-to-text/docs/basics#select-model)
       for more details.
       If you specify a model, the following models typically have the best
       performance:
      
       - phone_call (best for Agent Assist and telephony)
       - latest_short (best for Dialogflow non-telephony)
       - command_and_search
      
       Leave this field unspecified to use
       [Agent Speech
       settings](https://cloud.google.com/dialogflow/cx/docs/concept/agent#settings-speech)
       for model selection.
       
      string model = 2;
      Returns:
      The bytes for model.
    • getPhraseSetsList

      List<String> getPhraseSetsList()
       List of names of Cloud Speech phrase sets that are used for transcription.
       For phrase set limitations, please refer to [Cloud Speech API quotas and
       limits](https://cloud.google.com/speech-to-text/quotas#content).
       
      repeated string phrase_sets = 4 [(.google.api.resource_reference) = { ... }
      Returns:
      A list containing the phraseSets.
    • getPhraseSetsCount

      int getPhraseSetsCount()
       List of names of Cloud Speech phrase sets that are used for transcription.
       For phrase set limitations, please refer to [Cloud Speech API quotas and
       limits](https://cloud.google.com/speech-to-text/quotas#content).
       
      repeated string phrase_sets = 4 [(.google.api.resource_reference) = { ... }
      Returns:
      The count of phraseSets.
    • getPhraseSets

      String getPhraseSets(int index)
       List of names of Cloud Speech phrase sets that are used for transcription.
       For phrase set limitations, please refer to [Cloud Speech API quotas and
       limits](https://cloud.google.com/speech-to-text/quotas#content).
       
      repeated string phrase_sets = 4 [(.google.api.resource_reference) = { ... }
      Parameters:
      index - The index of the element to return.
      Returns:
      The phraseSets at the given index.
    • getPhraseSetsBytes

      com.google.protobuf.ByteString getPhraseSetsBytes(int index)
       List of names of Cloud Speech phrase sets that are used for transcription.
       For phrase set limitations, please refer to [Cloud Speech API quotas and
       limits](https://cloud.google.com/speech-to-text/quotas#content).
       
      repeated string phrase_sets = 4 [(.google.api.resource_reference) = { ... }
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the phraseSets at the given index.
    • getAudioEncodingValue

      int getAudioEncodingValue()
       Audio encoding of the audio content to process.
       
      .google.cloud.dialogflow.v2.AudioEncoding audio_encoding = 6;
      Returns:
      The enum numeric value on the wire for audioEncoding.
    • getAudioEncoding

      AudioEncoding getAudioEncoding()
       Audio encoding of the audio content to process.
       
      .google.cloud.dialogflow.v2.AudioEncoding audio_encoding = 6;
      Returns:
      The audioEncoding.
    • getSampleRateHertz

      int getSampleRateHertz()
       Sample rate (in Hertz) of the audio content sent in the query.
       Refer to [Cloud Speech API
       documentation](https://cloud.google.com/speech-to-text/docs/basics) for
       more details.
       
      int32 sample_rate_hertz = 7;
      Returns:
      The sampleRateHertz.
    • getLanguageCode

      String getLanguageCode()
       The language of the supplied audio. Dialogflow does not do
       translations. See [Language
       Support](https://cloud.google.com/dialogflow/docs/reference/language)
       for a list of the currently supported language codes. Note that queries in
       the same session do not necessarily need to specify the same language.
       If not specified, the default language configured at
       [ConversationProfile][google.cloud.dialogflow.v2.ConversationProfile] is
       used.
       
      string language_code = 8;
      Returns:
      The languageCode.
    • getLanguageCodeBytes

      com.google.protobuf.ByteString getLanguageCodeBytes()
       The language of the supplied audio. Dialogflow does not do
       translations. See [Language
       Support](https://cloud.google.com/dialogflow/docs/reference/language)
       for a list of the currently supported language codes. Note that queries in
       the same session do not necessarily need to specify the same language.
       If not specified, the default language configured at
       [ConversationProfile][google.cloud.dialogflow.v2.ConversationProfile] is
       used.
       
      string language_code = 8;
      Returns:
      The bytes for languageCode.
    • getEnableWordInfo

      boolean getEnableWordInfo()
       If `true`, Dialogflow returns
       [SpeechWordInfo][google.cloud.dialogflow.v2.SpeechWordInfo] in
       [StreamingRecognitionResult][google.cloud.dialogflow.v2.StreamingRecognitionResult]
       with information about the recognized speech words, e.g. start and end time
       offsets. If false or unspecified, Speech doesn't return any word-level
       information.
       
      bool enable_word_info = 9;
      Returns:
      The enableWordInfo.
    • getUseTimeoutBasedEndpointing

      boolean getUseTimeoutBasedEndpointing()
       Use timeout based endpointing, interpreting endpointer sensitivity as
       seconds of timeout value.
       
      bool use_timeout_based_endpointing = 11;
      Returns:
      The useTimeoutBasedEndpointing.