我想使用Google Speech API的异步转录服务。我已经将我的音频文件上传到Google存储桶中,并且正在尝试使用以下代码(我从命令中删除了我的密钥和文件名,其他所有内容都被复制了)。Google语音API发生INVALID_ARGUMENT错误
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错误,告诉我“请求包含无效参数”。我在卷曲请求中做了什么错误?
哦,这是我在复制命令时犯的一个错字。修正了它的问题。谢谢。 – Mohsen