Client uses PyAudio to stream audio to server.
Server converts audio stream to text using GCP Speech-to-Text and translats it using Google Cloud Translation.
The software has only been tested in Python3.6.
-
Follow the the instructions in Google Cloud documentation The JSON file you downloaded the the end of above instructions contains your key, GOOGLE_APPLICATION_CREDENTIALS
-
Copy full file path (examle: C:\Users\yourname\Documents\subfoldername\google-app-credentials.json) to servers code line 20
example:
credential_path = r"C:\Users\yourname\Documents\subfoldername\google-app-credentials.json"
-
If not run locally, HOST should be '0.0.0.0'.