是否可以将 Dialogflow 作为语音界面添加到 Web 应用程序,并使用语音启用 Web 应用程序功能?

Can Dialogflow be added as a voice interface to a web app and voice enable web app functionalities?

我有一个关于 Dialogflow 集成到网络应用程序的问题。 我看到 Dialogflow 可以作为聊天机器人(网络演示)集成到网络中。但是聊天机器人是基于文本的,不会自然地和你说话。此外,Web 集成使用 REST API 将用户查询发送回 Dialogflow 代理并从中接收响应。用户是否可以使用纯语音与 Web 应用程序完全交互?例如:说“打开产品页面”,然后语音助手将回复并将用户导航到产品页面。

我还没有发现任何人使用 Dialogflow 这样做,所以我不确定 Dialoglow 是否能够在网络应用程序中启用功能。有人对此有想法吗?谢谢

如果您查看 sessions.detectIntent API,您可以看到它能够接受音频作为输入并能够在响应中输出音频。

inputAudio  
string (bytes format)

The natural language speech audio to be processed. This field should be populated iff queryInput is set to an input audio config. A single request can contain up to 1 minute of speech audio data.

A base64-encoded string.

在此请求中,您可以指定 input audio encoding,包括采样率和格式。