You’ve probably noticed that our backend code contains some lines related to Google Cloud.
The library itself is imported this way:
Now you need to specify how to process the request. To do that, choose an encoding, sampleRateHertz, and languageCode in the config:
Then, create a new stream to be written into a binary file:
When everything is set up, you should parse the message and put base64 audio data to recognizeStream:
Right after this, a recognition request will be initiated and therefore handled:
Lastly, obtain and provide your service account credentials to connect the Google library to its backend. To do this, go to the Google Authentication page and complete all the steps listed there. Next, run this export command in the same workspace (the same Terminal tab) as the