使用 Curl 的 IBM Watson TTS 出现问题

Having issues with IBM Watson TTS using Curl

我使用 Curl 和 watson TT 已有一段时间了。 突然间它停止工作了。 它创建了音频文件,但它无法播放并且尺寸非常小

curl -X POST -u "apikey:APIKEY" ^
--header "Content-Type: application/json" ^
--header "Accept: audio/wav" ^
--data "{\"text\":\"Test IBM Watson TTS.\"}" ^
--output Test.wav ^
"https://api.us-south.text-to-speech.watson.cloud.ibm.com/instances/d73ba88c-84fc-45d2-b1bd-7b95066c280a/v1/synthesize?voice=en-US_MichaelV3Voice"

有人有什么想法吗?

您的非常小的音频文件实际上是一个包含错误代码的文本文件。对其进行 cat 或使用文本编辑器打开它并检查它报告的错误。