使用Curl的IBM Watson TTS遇到问题 [英] Having issues with IBM Watson TTS using Curl

查看:61
本文介绍了使用Curl的IBM Watson TTS遇到问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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"

有人有什么主意吗?

推荐答案

您的很小的音频文件实际上是一个包含错误代码的文本文件.选择它或使用文本编辑器将其打开,然后检查其报告的错误.

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.

这篇关于使用Curl的IBM Watson TTS遇到问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆