Reference documentation and code samples for the Dialogflow CX V3 API class Google::Cloud::Dialogflow::CX::V3::AudioInput.
Represents the natural speech audio to be processed.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#audio
def audio() -> ::String
-
(::String) — 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.v3.QueryResult.transcript] cannot contain
more than 256 bytes.
For non-streaming audio detect intent, both
config
andaudio
must be provided. For streaming audio detect intent,config
must be provided in the first request andaudio
must be provided in all following requests.
#audio=
def audio=(value) -> ::String
-
value (::String) — 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.v3.QueryResult.transcript] cannot contain
more than 256 bytes.
For non-streaming audio detect intent, both
config
andaudio
must be provided. For streaming audio detect intent,config
must be provided in the first request andaudio
must be provided in all following requests.
-
(::String) — 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.v3.QueryResult.transcript] cannot contain
more than 256 bytes.
For non-streaming audio detect intent, both
config
andaudio
must be provided. For streaming audio detect intent,config
must be provided in the first request andaudio
must be provided in all following requests.
#config
def config() -> ::Google::Cloud::Dialogflow::CX::V3::InputAudioConfig
- (::Google::Cloud::Dialogflow::CX::V3::InputAudioConfig) — Required. Instructs the speech recognizer how to process the speech audio.
#config=
def config=(value) -> ::Google::Cloud::Dialogflow::CX::V3::InputAudioConfig
- value (::Google::Cloud::Dialogflow::CX::V3::InputAudioConfig) — Required. Instructs the speech recognizer how to process the speech audio.
- (::Google::Cloud::Dialogflow::CX::V3::InputAudioConfig) — Required. Instructs the speech recognizer how to process the speech audio.