public final class AudioInput extends GeneratedMessageV3 implements AudioInputOrBuilder
Represents the natural speech audio to be processed.
Protobuf type google.cloud.dialogflow.cx.v3beta1.AudioInput
Static Fields
public static final int AUDIO_FIELD_NUMBER
Field Value
public static final int CONFIG_FIELD_NUMBER
Field Value
Static Methods
public static AudioInput getDefaultInstance()
Returns
public static final Descriptors.Descriptor getDescriptor()
Returns
public static AudioInput.Builder newBuilder()
Returns
public static AudioInput.Builder newBuilder(AudioInput prototype)
Parameter
Returns
public static AudioInput parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static AudioInput parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static AudioInput parseFrom(byte[] data)
Parameter
Name |
Description |
data |
byte[]
|
Returns
Exceptions
public static AudioInput parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static AudioInput parseFrom(ByteString data)
Parameter
Returns
Exceptions
public static AudioInput parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static AudioInput parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static AudioInput parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static AudioInput parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static AudioInput parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static AudioInput parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
public static AudioInput parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Parser<AudioInput> parser()
Returns
Methods
public boolean equals(Object obj)
Parameter
Returns
Overrides
public ByteString getAudio()
The natural language speech audio to be processed.
A single request can contain up to 1 minute of speech audio data.
The transcribed
text 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
public 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
public 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];
Returns
public AudioInput getDefaultInstanceForType()
Returns
public Parser<AudioInput> getParserForType()
Returns
Overrides
public int getSerializedSize()
Returns
Overrides
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
public 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
Type |
Description |
boolean |
Whether the config field is set.
|
Returns
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public AudioInput.Builder newBuilderForType()
Returns
protected AudioInput.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
public AudioInput.Builder toBuilder()
Returns
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions