【发布时间】:2018-03-08 13:02:44
【问题描述】:
我已经完成了“概述教程”:https://cloud.google.com/speech/docs/getting-started 然后我尝试使用我自己的音频文件。我上传了一个采样率为 16000Hz 的 .flac 文件。
我只用我自己托管在谷歌云存储 (gs://my-bucket/test4.flac) 上的音频文件更改了下面的 sync-request.json 文件
{
"config": {
"encoding":"flac",
"sample_rate": 16000
},
"audio": {
"uri":"gs://my-bucket/test4.flac"
}
}
文件被很好地识别,但请求返回“INVALID_ARGUMENT”错误
{
"error": {
"code": 400,
"message": "Unable to recognize speech, code=-73541, possible error in recognition config. Please correct the config and retry the request.",
"status": "INVALID_ARGUMENT"
}
}
【问题讨论】: