Using Google Cloud APIs, live translate audio into either subtitles or translated audio.
For Google Cloud to connect to your account credentials, an environment variable must be set to point to a JSON file with your credentials.
To create the file and set the environment key:
GOOGLE_APPLICATION_CREDENTIALS
to the path to your JSON file.For example on Unix:
export GOOGLE_APPLICATION_CREDENTIALS=/path/to/creds.json
Server written in Node.js. Collects, audio fragments, translates them, and upon a response from Google Cloud, responds with text from audio and translated text.
cd speech_processing/
yarn install
yarn start
Interface written using React.js and uses react-select library.
cd interface/
yarn install
yarn start