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

问题描述 投票:0回答:1

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

谢谢,阿什利

text-to-speech ibm-watson watson-text-to-speech
1个回答
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"
© www.soinside.com 2019 - 2024. All rights reserved.