public sealed class AudioInput : IMessage<AudioInput>, IEquatable<AudioInput>, IDeepCloneable<AudioInput>, IBufferMessage, IMessage
Represents the natural speech audio to be processed.
Inheritance
System.Object > AudioInputImplements
Google.Protobuf.IMessage<AudioInput>, System.IEquatable<AudioInput>, Google.Protobuf.IDeepCloneable<AudioInput>, Google.Protobuf.IBufferMessage, Google.Protobuf.IMessageNamespace
Google.Cloud.Dialogflow.Cx.V3Assembly
Google.Cloud.Dialogflow.Cx.V3.dll
Constructors
AudioInput()
public AudioInput()
AudioInput(AudioInput)
public AudioInput(AudioInput other)
Parameter | |
---|---|
Name | Description |
other | AudioInput |
Properties
Audio
public ByteString Audio { get; set; }
The natural language speech audio to be processed. A single request can contain up to 1 minute of speech audio data. The [transcribed text][google.cloud.dialogflow.cx.v3.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.
Property Value | |
---|---|
Type | Description |
Google.Protobuf.ByteString |
Config
public InputAudioConfig Config { get; set; }
Required. Instructs the speech recognizer how to process the speech audio.
Property Value | |
---|---|
Type | Description |
InputAudioConfig |