简体   繁体   English

Tropo设置声音不起作用?

[英]Tropo setting voice not working?

I am trying to make this line work: 我想让这条线工作:

tropo.say("Some text","kate");

Documentation 文档

But this line breaks the node.js app I am writing. 但这一行打破了我正在写的node.js应用程序。 If I don't specify the voice then it works fine. 如果我没有指定语音,那么它工作正常。 For example: 例如:

tropo.say("Some text");

Any tropo guru here that can help me out? 这里有任何tropo大师可以帮助我吗?

You linked to Scripting docs, but your app is WebAPI. 您链接到Scripting文档,但您的应用是WebAPI。 Here is a script from those docs: 这是来自这些文档的脚本:

var http = require('http');
var tropo_webapi = require('tropo-webapi');

var server = http.createServer(function (request, response) {

    var tropo = new TropoWebAPI();

    // (value, as, name, required, voice)
    tropo.say("Hello, how are you?.", null, null, null, "kate");

    response.end(TropoJSON(tropo));

}).listen(8000);

https://www.tropo.com/docs/webapi/international_speaking_other_languages.htm https://www.tropo.com/docs/webapi/international_speaking_other_languages.htm

I believe this was resolved in IRC already, but posting the above for any other users checking it out. 我相信这已经在IRC中解决了,但是将其发布给任何其他用户查看它。

Justin Dupree 贾斯汀杜普里
Director of Customer Experience 客户体验总监
Voxeo Labs Voxeo实验室

You are passing your parameter wrong. 您传递的参数错误。 You have posted a link to the documentation , which clearly says it should be: 您已发布文档的链接,该文档清楚地表明它应该是:

say("Some text",{voice:"kate"});

The voice Kate is only for British English language. 语音Kate仅适用于英国英语。 What language are you specifying in your application, if any. 您在申请中指定的语言(如果有)。 The default is US English and the female voices you have available are Allison (Default), Susan, Vanessa, Veronica. 默认为美国英语,您可以使用的女声是Allison(默认),Susan,Vanessa,Veronica。 Logs should give you a clue as to what is going on. 日志应该为您提供有关正在发生的事情的线索。 And if you are still stuck ask your question in the Tropo Forum . 如果您仍然卡住,请在Tropo论坛中提出您的问题。 Voxeo's Extreme Support is pretty good about providing timely and useful assistance. Voxeo的Extreme Support非常适合提供及时有用的帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM