当我向 Google Cloud Speech API 发出请求时出现此错误:"error": { "code": 400, "message": "Request contains an invalid argument.", "status": "INVALID_ARGUMENT
我的 curl 命令如下所示: curl -s -k -H "Content-Type: application/json" -H "Authorization: Bearer xxxxxxx" \ https://speech.googleapis.com/v1beta1/speech:syncrecognize -d @同步请求.json
我的配置文件是这样的:
{
'config': {
'encoding':'FLAC',
'sampleRate': 16000,
'languageCode': 'de-DE'
},
'audio': {
'uri':'https://storage.googleapis.com/project_name/xxxx_Ger16.flac'
}
}
请求中缺少什么或无效的内容?谢谢。