【问题标题】:Google Cloud Speech API- Permission ErrorGoogle Cloud Speech API - 权限错误
【发布时间】:2018-11-19 12:06:32
【问题描述】:

API 已在控制台中启用,但仍然出现此错误。

data:{  
   error:{  
      code:403,
      message:'Cloud Speech API has not been used in project ************ before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/speech.googleapis.com/overview?project=************ then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.',
      status:'PERMISSION_DENIED',
      details:[  
         Array
      ]
   }
}

【问题讨论】:

  • 关于环境变量,您能否说明您是如何处理您的请求的,以及您是否已经执行了Before you begin 步骤?
  • 我正在关注this 文档,并且也正确设置了环境变量。
  • 您使用哪种编程语言?请记住,每次打开 CLI 时都应设置环境变量。
  • NodeJS,是的,我牢记在心。
  • 我在帐户中禁用了 API,然后再次启用它。它成功了!

标签: google-cloud-speech


【解决方案1】:

只是不要让问题得不到回答。根据 11 月 21 日的评论,禁用和启用 API 解决了这个问题。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-01-12
    • 1970-01-01
    • 1970-01-01
    • 2017-11-01
    • 1970-01-01
    相关资源
    最近更新 更多