[英]Having issues with IBM Watson TTS using Curl
Ive been using Curl and watson TTs for some time now.我已经使用 Curl 和 watson TT 有一段时间了。 All of a sudden it stopped working.突然间它停止了工作。 It created the audio file, but it is unplayable and has very small size它创建了音频文件,但无法播放且尺寸非常小
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"
Anyone have any ideas?有人有想法么?
Your very small audio file will actually be a text file containing the error code.您的非常小的音频文件实际上是一个包含错误代码的文本文件。 Either cat it or open it with a text editor and check what error it is reporting.要么 cat 它,要么用文本编辑器打开它,然后检查它报告的错误。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.