The audio data bytes encoded as specified in the request. Note: The output audio is generated based on the values of default platform text responses found in thequery_result.response_messagesfield. If multiple default text responses exist, they will be concatenated when generating audio. If no default platform text responses exist, the generated audio content will be empty. In some scenarios, multiple output audio fields may be present in the response structure. In these cases, only the top-most-level audio output has content.
The audio data bytes encoded as specified in the request.
Note: The output audio is generated based on the values of default platform
text responses found in thequery_result.response_messagesfield. If multiple default text responses exist, they will be concatenated
when generating audio. If no default platform text responses exist, the
generated audio content will be empty.
In some scenarios, multiple output audio fields may be present in the
response structure. In these cases, only the top-most-level audio output
has content.
Returns
Type
Description
string
setOutputAudio
The audio data bytes encoded as specified in the request.
Note: The output audio is generated based on the values of default platform
text responses found in thequery_result.response_messagesfield. If multiple default text responses exist, they will be concatenated
when generating audio. If no default platform text responses exist, the
generated audio content will be empty.
In some scenarios, multiple output audio fields may be present in the
response structure. In these cases, only the top-most-level audio output
has content.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getOutputAudioConfig
The config used by the speech synthesizer to generate the output audio.
[[["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 FulfillIntentResponse (0.8.1)\n\nVersion latestkeyboard_arrow_down\n\n- [0.8.1 (latest)](/php/docs/reference/cloud-dialogflow-cx/latest/V3.FulfillIntentResponse)\n- [0.8.0](/php/docs/reference/cloud-dialogflow-cx/0.8.0/V3.FulfillIntentResponse)\n- [0.7.2](/php/docs/reference/cloud-dialogflow-cx/0.7.2/V3.FulfillIntentResponse)\n- [0.6.0](/php/docs/reference/cloud-dialogflow-cx/0.6.0/V3.FulfillIntentResponse)\n- [0.5.2](/php/docs/reference/cloud-dialogflow-cx/0.5.2/V3.FulfillIntentResponse)\n- [0.4.1](/php/docs/reference/cloud-dialogflow-cx/0.4.1/V3.FulfillIntentResponse)\n- [0.3.4](/php/docs/reference/cloud-dialogflow-cx/0.3.4/V3.FulfillIntentResponse)\n- [0.2.1](/php/docs/reference/cloud-dialogflow-cx/0.2.1/V3.FulfillIntentResponse)\n- [0.1.1](/php/docs/reference/cloud-dialogflow-cx/0.1.1/V3.FulfillIntentResponse) \nReference documentation and code samples for the Google Cloud Dialogflow Cx V3 Client class FulfillIntentResponse.\n\nResponse of FulfillIntent\n\nGenerated from protobuf message `google.cloud.dialogflow.cx.v3.FulfillIntentResponse`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Dialogflow \\\\ Cx \\\\ V3\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getResponseId\n\nOutput only. The unique identifier of the response. It can be used to\nlocate a response in the training example set or for reporting issues.\n\n### setResponseId\n\nOutput only. The unique identifier of the response. It can be used to\nlocate a response in the training example set or for reporting issues.\n\n### getQueryResult\n\nThe result of the conversational query.\n\n### hasQueryResult\n\n### clearQueryResult\n\n### setQueryResult\n\nThe result of the conversational query.\n\n### getOutputAudio\n\nThe audio data bytes encoded as specified in the request.\n\nNote: The output audio is generated based on the values of default platform\ntext responses found in the\n[`query_result.response_messages`](/php/docs/reference/cloud-dialogflow-cx/latest/V3.QueryResult#_Google_Cloud_Dialogflow_Cx_V3_QueryResult__getResponseMessages__)\nfield. If multiple default text responses exist, they will be concatenated\nwhen generating audio. If no default platform text responses exist, the\ngenerated audio content will be empty.\nIn some scenarios, multiple output audio fields may be present in the\nresponse structure. In these cases, only the top-most-level audio output\nhas content.\n\n### setOutputAudio\n\nThe audio data bytes encoded as specified in the request.\n\nNote: The output audio is generated based on the values of default platform\ntext responses found in the\n[`query_result.response_messages`](/php/docs/reference/cloud-dialogflow-cx/latest/V3.QueryResult#_Google_Cloud_Dialogflow_Cx_V3_QueryResult__getResponseMessages__)\nfield. If multiple default text responses exist, they will be concatenated\nwhen generating audio. If no default platform text responses exist, the\ngenerated audio content will be empty.\nIn some scenarios, multiple output audio fields may be present in the\nresponse structure. In these cases, only the top-most-level audio output\nhas content.\n\n### getOutputAudioConfig\n\nThe config used by the speech synthesizer to generate the output audio.\n\n### hasOutputAudioConfig\n\n### clearOutputAudioConfig\n\n### setOutputAudioConfig\n\nThe config used by the speech synthesizer to generate the output audio."]]