【问题标题】:What is the Endpoint/Port used for Google Cloud Speech API谷歌云语音 API 使用的端点/端口是什么
【发布时间】:2018-07-01 10:29:29
【问题描述】:

对于通过流 API(Performing Streaming Speech Recognition on an Audio Stream) 使用 Google Cloud Speech API,

我们需要启用/白名单的端点/端口是什么?

被问到的原因是,我们在受限设备上运行它,并且只需要打开所需的出站端点/端口。

【问题讨论】:

    标签: google-cloud-speech


    【解决方案1】:

    您应该将*.googleapis.comaccounts.google.com 列入白名单。这些都使用https协议。

    语音的实际端点是https://speech.googleapis.com/v1/speech,但您还需要访问身份验证端点accounts.google.comwww.googleapis.comoauth2.googleapis.com

    【讨论】:

    • 谢谢。希望 gRPC 流 API 也一样。
    【解决方案2】:

    我已将以下 URL 列入白名单

    https://texttospeech.googleapis.com/* 
    https://speech.googleapis.com/* 
    https://accounts.google.com/*
    https://www.googleapis.com/*
    https://oauth2.googleapis.com/* 
    https://cloud.google.com/*
    

    【讨论】:

      猜你喜欢
      • 2023-04-09
      • 2017-03-08
      • 1970-01-01
      • 2017-05-01
      • 1970-01-01
      • 2016-01-20
      • 1970-01-01
      • 2023-04-01
      • 1970-01-01
      相关资源
      最近更新 更多