【发布时间】:2017-05-29 02:43:55
【问题描述】:
我想使用 Google Speech API 的异步转录服务。我已将我的音频文件上传到 Google 存储桶中,并尝试将其与以下代码一起使用(我已从命令中删除了我的密钥和文件名,其他所有内容均已复制)。
curl -H "Content-Type: application/json"
--data '{"audio":{"uri":"https://storage.cloud.google.com/<mybucketname>/<filename>"},
"config":{"encoding":"FLAC","sample_rate_hertz":"16000","language_code":"en_US"}}'
https://speech.googleapis.com/v1/speech:longrunningrecognize?key=<mykey>
我收到 400 INVALID_ARGUMENT 错误,告诉我“请求包含无效参数”。我在 curl 请求中做错了什么?
【问题讨论】:
标签: json curl google-speech-api