从Watson文本到语音下载音频文件

时间:2020-05-21 15:24:52

标签: text-to-speech ibm-watson watson-text-to-speech

试图弄清楚如何简单地从Watson的文本转语音下载音频文件。 以前曾经有一个下载按钮,但现在没有了。有下载音频文件的简便方法吗?该文档似乎很复杂,我们不需要在网站上使用它。

谢谢, 阿什利

1 个答案:

答案 0 :(得分:0)

来自API文档 https://cloud.ibm.com/apidocs/text-to-speech#synthesize-audio-get

您可以使用cURL:

curl -X GET -u "apikey:{apikey}" --output hello_world.wav "{url}/v1/synthesize?accept=audio%2Fwav&text=Hello%20world&voice=en-US_AllisonVoice"