java - Twilio - Speech To Text 缺少收集 SpeechResult
问题描述
我已经开始使用 Twilio Voice 和 twiml 中的收集命令。如 java sdk 文档中所述,我提供了必要的配置。
Gather gather = new Gather.Builder()
.speechTimeout("auto")
.language(Gather.Language.EN_US)
.method(HttpMethod.POST)
.inputs(Gather.Input.SPEECH)
.actionOnEmptyResult(true)
.action(String.format("http://%s/call/speechtotext?sid=%s", headers.getHost().getHostName(), ""))
.build();
问题是对我的操作 url 的请求正文没有 SpeechResult 属性。我总是得到空的动作,当我设置 .actionOnEmptyResult(False) 时不发送请求。有趣的是,每次我暂停讲话时都会触发空动作。
有人对此有解决方案吗?
解决方案
推荐阅读
- docker - 在 Docker for Windows 上运行的带有 kafka 映像的 Kafka 工具连接问题
- linux - 如何在保持虚拟地址映射的同时返回物理页面?
- netlogo - 如何使用 Face 引导海龟向锥体移动
- kerberos - 向导中断时如何为 ambari 重新安装 Kerberos 客户端?
- azure - “添加或修改 blob 时(仅限属性)”的逻辑应用 Azure 权限问题
- c - 如果我在全局内存中有一个结构对象,我需要 malloc 吗?如果该结构具有结构作为属性,我是否必须 malloc 那些?
- codeigniter-3 - 单击codeigniter中的其他页面时css和js文件路径更改
- javascript - 如何在 React 中根据屏幕大小将信息(链接)推送到“...”中显示更多弹出框
- c# - 从导致问题的各种脚本中引用
- node.js - Electron / Mongoose / MongoDB Cast 错误:“错误:有效负载验证失败:video_buffer:Cast to Buffer 值“Uint8Array..”