我只是遵循Google语音文本API示例。 阅读快速入门指南。
但是有一些麻烦...
在其中执行curl命令。
我只是尝试更改凭据密钥..
但仍然无法正常工作。
仅使用Windows和Powershell。
curl -s -H "Content-Type:application/json" -H "Authorization:Bearer "$(gcloud auth application-default print-access-token)
https://speech.googleapis.com/v1/speech:recognize -d @sync-request.json
{
"error": {
"code": 403,
"message": "The request is missing a valid API key.",
"status": "PERMISSION_DENIED"
}
}