Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/shell/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Text to speech 当ssml格式传入Ivona时,音频拼写标记_Text To Speech_Ssml - Fatal编程技术网

Text to speech 当ssml格式传入Ivona时,音频拼写标记

Text to speech 当ssml格式传入Ivona时,音频拼写标记,text-to-speech,ssml,Text To Speech,Ssml,当我调用输入为ssml格式的Ivona API时,我会得到发音为ssml标记的音频 如何使用ssml作为输入正确调用。我正在重新测试请求类型为“text/plain”的音频。正确的输入类型将是“application/ssml+xml” 我正在使用ivona节点库获取音频 格式如下所示: var audioText = '<?xml version="1.0"?><speak version="1.0" xmlns="http://www.w3.org/2001/10/synt

当我调用输入为ssml格式的Ivona API时,我会得到发音为ssml标记的音频


如何使用ssml作为输入正确调用。

我正在重新测试请求类型为“text/plain”的音频。正确的输入类型将是“application/ssml+xml”

我正在使用ivona节点库获取音频

格式如下所示:

var audioText = '<?xml version="1.0"?><speak version="1.0" xmlns="http://www.w3.org/2001/10/synthesis" xml:lang="en-US"><p><s>This is the first sentence of the paragraph.</s><s>Here is another sentence.</s></p></speak>';

ivona.createVoice(audioText, {
  body: {
    input: {
      data: null,
      type: 'application/ssml+xml'
    },
    voice: {
      name: 'Raveena',
      language: 'en-IN',
      gender: 'Female'
    }
  }
}).pipe(fs.createWriteStream('output.mp3'));
var audioText='这是本段的第一句话。这是另一句话。

; ivona.createVoice(有声文本{ 正文:{ 输入:{ 数据:空, 类型:“应用程序/ssml+xml” }, 声音:{ 名称:“拉韦娜”, 语言:“en IN”, 性别:'女性' } } }).pipe(fs.createWriteStream('output.mp3');