【发布时间】:2018-04-16 09:54:00
【问题描述】:
IBM 使用 cURL 提供的 Watson TTS 示例有一些问题:
curl -X POST -u {USERNAME}:{PASSWORD} \
--header "Content-Type: application/json" \
--header "Accept: audio/wav" \
--data '{"text":"hello world"}' \
--output hello_world.wav \
"https://stream.watsonplatform.net/text-to-speech/api/v1/synthesize"
我正在通过 GitBASH 运行这个 cURL 命令,但我得到的音频文件输出是空白的并且不包含任何音频。
我尝试过改变:
--data '{"text":"hello world"}' \
到:
--data "{\"text\":\"hello world\"}" \
但我得到了相同的结果。
【问题讨论】: