Required. Instructs the speech recognizer how to process the speech audio.
↳ audio
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 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.
getConfig
Required. Instructs the speech recognizer how to process the speech audio.
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 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.
Returns
Type
Description
string
setAudio
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 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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud Dialogflow Cx V3 Client - Class AudioInput (0.8.1)\n\nVersion latestkeyboard_arrow_down\n\n- [0.8.1 (latest)](/php/docs/reference/cloud-dialogflow-cx/latest/V3.AudioInput)\n- [0.8.0](/php/docs/reference/cloud-dialogflow-cx/0.8.0/V3.AudioInput)\n- [0.7.2](/php/docs/reference/cloud-dialogflow-cx/0.7.2/V3.AudioInput)\n- [0.6.0](/php/docs/reference/cloud-dialogflow-cx/0.6.0/V3.AudioInput)\n- [0.5.2](/php/docs/reference/cloud-dialogflow-cx/0.5.2/V3.AudioInput)\n- [0.4.1](/php/docs/reference/cloud-dialogflow-cx/0.4.1/V3.AudioInput)\n- [0.3.4](/php/docs/reference/cloud-dialogflow-cx/0.3.4/V3.AudioInput)\n- [0.2.1](/php/docs/reference/cloud-dialogflow-cx/0.2.1/V3.AudioInput)\n- [0.1.1](/php/docs/reference/cloud-dialogflow-cx/0.1.1/V3.AudioInput) \nReference documentation and code samples for the Google Cloud Dialogflow Cx V3 Client class AudioInput.\n\nRepresents the natural speech audio to be processed.\n\nGenerated from protobuf message `google.cloud.dialogflow.cx.v3.AudioInput`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Dialogflow \\\\ Cx \\\\ V3\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getConfig\n\nRequired. Instructs the speech recognizer how to process the speech audio.\n\n### hasConfig\n\n### clearConfig\n\n### setConfig\n\nRequired. Instructs the speech recognizer how to process the speech audio.\n\n### getAudio\n\nThe natural language speech audio to be processed.\n\nA single request can contain up to 2 minutes of speech audio data.\nThe [transcribed\ntext](/php/docs/reference/cloud-dialogflow-cx/latest/V3.QueryResult#_Google_Cloud_Dialogflow_Cx_V3_QueryResult__getTranscript__) cannot contain\nmore than 256 bytes.\nFor non-streaming audio detect intent, both `config` and `audio` must be\nprovided.\nFor streaming audio detect intent, `config` must be provided in\nthe first request and `audio` must be provided in all following requests.\n\n### setAudio\n\nThe natural language speech audio to be processed.\n\nA single request can contain up to 2 minutes of speech audio data.\nThe [transcribed\ntext](/php/docs/reference/cloud-dialogflow-cx/latest/V3.QueryResult#_Google_Cloud_Dialogflow_Cx_V3_QueryResult__getTranscript__) cannot contain\nmore than 256 bytes.\nFor non-streaming audio detect intent, both `config` and `audio` must be\nprovided.\nFor streaming audio detect intent, `config` must be provided in\nthe first request and `audio` must be provided in all following requests."]]