当 ssml 格式在 Ivona 中传递时,音频拼写标记
Audio spells markup when ssml format passed in Ivona
当我以 ssml 格式输入调用 Ivona API 时,我得到发音为 ssml 标记的音频。
如何使用ssml作为输入正确调用。
我正在请求请求类型为 'text/plain' 的音频。正确的输入类型是 'application/ssml+xml'.
我正在使用 ivona-node 库来获取音频。
格式将是这样的:
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'));
当我以 ssml 格式输入调用 Ivona API 时,我得到发音为 ssml 标记的音频。
如何使用ssml作为输入正确调用。
我正在请求请求类型为 'text/plain' 的音频。正确的输入类型是 'application/ssml+xml'.
我正在使用 ivona-node 库来获取音频。
格式将是这样的:
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'));