在Dialogflow中返回音频

问题描述 投票:0回答:1

我正在使用dialogflow,并且我当前的脚本通过以下方式以文本格式返回代理的响应:content.queryResult.fulfillmentText;我还想返回合成的音频响应,我正在使用Dialogflow API.v2。

c# unity3d dialogflow
1个回答
0
投票

如果转到Dialogflow代理中的设置,则在“语音”选项卡中,可以启用“启用自动文本到语音”选项以始终为对话生成音频。

此外,还有更多设置可以调整以控制语音配置。

Dialogflow Speech information

您还可以通过使用outputAudioConfig parameter in the DerectIntentRequest在每个请求的基础上设置此配置。

最后,您可以找到audioOutput in the DetectIntentResponse

© www.soinside.com 2019 - 2024. All rights reserved.