问题
For using Google Cloud Speech API via the streaming API(Performing Streaming Speech Recognition on an Audio Stream),
what are the endpoints/ports we need to enable/whitelist?
The reason being asked is, we are running this on a restricted device, and need to open only the required outbound endpoints/ports.
回答1:
You should whitelist *.googleapis.com
and accounts.google.com
. These all are using https protocol.
The actual endpoint for speech is https://speech.googleapis.com/v1/speech, but you will also need to access authentication endpoints accounts.google.com
, www.googleapis.com
and oauth2.googleapis.com
.
来源:https://stackoverflow.com/questions/51122469/what-is-the-endpoint-port-used-for-google-cloud-speech-api