[英]Simba][SpannerJDBCDriver](100300) Error message from server: INVALID_ARGUMENT: Positional parameters are not supported
[英]“error”: { “code”: 400, “message”: “RecognitionAudio not set.”, “status”: “INVALID_ARGUMENT” } }
我想通過此命令使用編輯器Cloud Shell將請求http POST發送到Cloud Speech API →
curl -s -X POST -H "Content-Type: application/json" --data-binary @request.json \
"https://speech.googleapis.com/v1/speech:recognize?key=AIzaSyBZMZwv1-WLSMG-OBJiaDQ6Q9oYEff5vEo"
我正在遵循官方教程https://codelabs.developers.google.com/codelabs/cloud-speech-intro/index.html?index=..%2F..index#2 ,但是當我在編輯,回應是這個→
{
"error": {
"code": 400,
"message": "RecognitionAudio not set.",
"status": "INVALID_ARGUMENT"
}
}
我在“ request.json ”文件中編寫的代碼是這個→
{
"config": {
"encoding":"FLAC",
"languageCode": "en-US",
},
"audio": {
"uri":"gs://cloud-samples-tests/speech/brooklyn.flac"
}
}
我在執行curl命令的文件夾中沒有request.json
文件時收到您提到的錯誤。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.