Reference documentation and code samples for the Dialogflow V2 API class Google::Cloud::Dialogflow::V2::AudioInput.
Represents the natural language speech audio to be processed.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#audio
def audio() -> ::String
Returns
- (::String) — Required. The natural language speech audio to be processed. A single request can contain up to 2 minutes of speech audio data. The transcribed text cannot contain more than 256 bytes for virtual agent interactions.
#audio=
def audio=(value) -> ::String
Parameter
- value (::String) — Required. The natural language speech audio to be processed. A single request can contain up to 2 minutes of speech audio data. The transcribed text cannot contain more than 256 bytes for virtual agent interactions.
Returns
- (::String) — Required. The natural language speech audio to be processed. A single request can contain up to 2 minutes of speech audio data. The transcribed text cannot contain more than 256 bytes for virtual agent interactions.
#config
def config() -> ::Google::Cloud::Dialogflow::V2::InputAudioConfig
Returns
- (::Google::Cloud::Dialogflow::V2::InputAudioConfig) — Required. Instructs the speech recognizer how to process the speech audio.
#config=
def config=(value) -> ::Google::Cloud::Dialogflow::V2::InputAudioConfig
Parameter
- value (::Google::Cloud::Dialogflow::V2::InputAudioConfig) — Required. Instructs the speech recognizer how to process the speech audio.
Returns
- (::Google::Cloud::Dialogflow::V2::InputAudioConfig) — Required. Instructs the speech recognizer how to process the speech audio.