Interface AudioInputOrBuilder

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

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

    Modifier and Type
    Method
    Description
    com.google.protobuf.ByteString
    The natural language speech audio to be processed.
    Required.
    Required.
    boolean
    Required.

    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

    • hasConfig

      boolean hasConfig()
       Required. Instructs the speech recognizer how to process the speech audio.
       
      .google.cloud.dialogflow.cx.v3beta1.InputAudioConfig config = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      Whether the config field is set.
    • getConfig

      InputAudioConfig getConfig()
       Required. Instructs the speech recognizer how to process the speech audio.
       
      .google.cloud.dialogflow.cx.v3beta1.InputAudioConfig config = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      The config.
    • getConfigOrBuilder

      InputAudioConfigOrBuilder getConfigOrBuilder()
       Required. Instructs the speech recognizer how to process the speech audio.
       
      .google.cloud.dialogflow.cx.v3beta1.InputAudioConfig config = 1 [(.google.api.field_behavior) = REQUIRED];
    • getAudio

      com.google.protobuf.ByteString getAudio()
       The natural language speech audio to be processed.
       A single request can contain up to 2 minutes of speech audio data.
       The [transcribed
       text][google.cloud.dialogflow.cx.v3beta1.QueryResult.transcript] cannot
       contain more than 256 bytes.
      
       For non-streaming audio detect intent, both `config` and `audio` must be
       provided.
       For streaming audio detect intent, `config` must be provided in
       the first request and `audio` must be provided in all following requests.
       
      bytes audio = 2;
      Returns:
      The audio.