在python中使用ispeech的文本到语音

时间:2013-10-04 13:44:11

标签: javascript jquery html html5 python-2.7

我想在项目中将文本转换为语音。我试过ispeech(www.ispeech.org)api。任何人都可以使用javascript,jquery或python来解释ispeech的一个例子。

1 个答案:

答案 0 :(得分:0)

使用jquery

的示例
a = '<data>'
a +=    '<apikey>developerdemokeydeveloperdemokey</apikey>'
a +=    '<action>convert</action>'
a +=    '<text>hello world</text>'
a +=    '<voice>usenglishfemale</voice>'
a +='</data>';
 $.ajax({
  url: "http://api.ispeech.org",
  type: "POST",
  data : {xml : a},
  contentType: "xml"
 });
相关问题