4
votes

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.

2

2 Answers

5
votes

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.

1
votes

I have got following URLs white-listed for the same

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