简体   繁体   中英

Having issues with IBM Watson TTS using Curl

Ive been using Curl and watson TTs for some time now. 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM