- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
希望你一切顺利。我们一直在 Ubuntu(16.04.2 LTS) 上使用带有 asterisk 13 的 Voximal(最新)。
我正在尝试调用返回 PCM 8000 流的 java Web 服务,该流是我们使用 Amazon polly 生成的,然后我想严格使用 vxml 通过电话向用户播放相同的流。
首先我想知道是否可以使用VXML2.1或CCXML来播放PCM流,我搜索了很多到现在还没有成功。
这是我的 vxml 代码,只是一次疯狂的尝试:)
<?xml version="1.0" encoding="UTF-8"?>
<vxml version="2.1">
<var name="serviceVS" expr="'http://localhost:57144/polly/v1'"/>
<form>
<filled>
<data name="url" srcexpr="serviceVS" method="post" namelist="file"
enctype="multipart/form-data"/>
<assign name="urlToPlay" expr="url.url"/>
<log>
urlToPlay =>
<value expr="urlToPlay"/>
</log>
<audio expr ="urlToPlay"/>
</filled>
</form>
</vxml>
下面是我的java代码
@RequestMapping(value="/polly/v1", method = {RequestMethod.POST,RequestMethod.GET})
public ResponseEntity<InputStreamResource> pollyEndPoint(@RequestParam("voiceId") String voiceId,
@RequestParam("text")String text,@RequestParam("outputFormat") String outputFormat){
InputStream speechStream= null;
InputStreamResource inputStreamResource=null;
HttpHeaders headers=null;
try{
speechStream=quikWitService.getPollyTextToSpeech(voiceId,text,outputFormat);
inputStreamResource= new InputStreamResource(speechStream);
headers = new HttpHeaders();
headers.add("Content-Type",QuikWitUtils.getAudioFormatContentType(outputFormat));
}
catch(Exception e){
logger.error(e);
logger.debug(e.getStackTrace());
}
return new ResponseEntity<>(inputStreamResource,headers, HttpStatus.OK);
}
如果有人可以向我指出任何文章或更多信息,我将不胜感激。
谢谢
最佳答案
Polly 与 Voximal 集成(您只需在 TTS/提示部分设置正确的配置)。Voximal 使用命令行“aws”生成本地音频内容,您可以使用 Amazon TextToSpeech 的全部功能,但应使用另一种方法来减少响应时间(约 1 秒的延迟,但 Voximal 使用的缓存可以掩盖这种影响)。我们将在下一个 Voximal 版本中改进 Polly 集成。
另一种方法是创建您自己的 Polly 与我们的 TTS/HTTP API 集成: https://wiki.voximal.com/doku.php?id=installation_guide:tts_http:start
对于每个部分,如果文本内容不在缓存中,Voximal 将生成 HTTP 请求。
关于java - 可以从 vxml 或 ccxml (Voximal) 播放音频流(PCM 流 8000),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46340506/
来自关于咨询的 VXML 2.1 文档 Consultation_Transfer 以及来自 VXML 2.0 桥接传输的文档 Briged transfer 我理解的唯一区别是这个 >即使在桥接转接
有人联系我说有机会做 VoiceXML——我没有任何经验,但显然这可能没问题。但是,我对该技术进行了一些初步研究,它看起来很旧,从未获得太多关注等。但我无法弄清楚是什么技术(y,ies)取代了它。 V
我正在寻找一种在桌面/网络浏览器中模拟 vxml 应用程序的解决方案。 挑战 在每个新的 vxml 应用程序开发中,我都有数百个单元测试用例。 不可能总是进行测试调用来测试我拥有的每个单元测试用例。如
我正在尝试做一个应用程序来监听一个名字和两个成绩,制作成绩的媒体,然后将其保存在 mysql 数据库中。我无法使应用程序识别十进制成绩(葡萄牙语)。这是我的实际代码:
很抱歉,这可能是一个非常基本的问题,但我才刚刚开始编程。基本上我需要在 VXML 中增加一个计数器。 我已将计数器声明为: 在 IF 语句中,我通过这样做递增:第二个赋值标记递增计数器。 T
有谁知道有什么工具可以让我直观地运行和调试 VXML 应用程序?有大量的 VXML 开发工具,但它们都要求您在其中构建应用程序。 我有一个使用 JSP 生成 VXML 的现有应用程序,我正在寻找一种方
是否允许嵌套的“if”语句? 前任: One is in fact equal to one and Two is in fact equal to two On
我需要在我的 VXML 应用程序根文档中定义的变量(其他文档会修改这些变量)可供 JSP/EL 页面使用。这里的想法是,根据这些变量的值,我可以向 JSP 添加逻辑,以将不同的 VXML block
我正在尝试完成一项有趣的任务。在使用 VoiceXML 时,我想让主叫者调用一个号码,然后转接到号码 #1。如果调用者未接通(无应答),则目标号码将更改,然后尝试将调用者连接到第二个号码。 支持技术人
我遇到以下情况的问题:我的 vxml 有以下片段: myscript.es: function temp(){ var delay = new String("abc pqr"); r
我正在寻找 VXML 2.1 帮助。我知道 vxml 可以在tellme.com 服务器上进行测试。但我正在搜索,是否有任何方法可以在 Google Chrome 中测试 vxml。也就是谷歌浏览器可
如何在vxml中使用javascript发出http请求?(通常 src 包含数据元素的任何 xml 文件的链接。但在我的情况下,它不一定是 xml 文件。所以我认为我不能在这里使用数据元素。) 最佳
我必须编写能够访问数据库的 VXML 应用程序。 VXML 标准让外部 url 带有参数,但作为响应,我必须返回生成的 VXML 文档,其中包含从数据库和其他 VXML 标记中获取的数据。 你能告诉我
希望你一切顺利。我们一直在 Ubuntu(16.04.2 LTS) 上使用带有 asterisk 13 的 Voximal(最新)。 我正在尝试调用返回 PCM 8000 流的 java Web 服务
我是一名优秀的程序员,十分优秀!