Audio to text using synchronous speech recognition

In the project folder that you downloaded along with this book, or at https://github.com/PacktPublishing/Getting-Started-with-Google-Cloud-AI-Services, you can find a folder for Chapter 5, and inside that folder you will find another folder named API, and inside that folder a folder named Audio. Inside the Audio folder, I placed the sample audio file that I used for testing, for your reference. You are free to use any audio sample, as long as it is a single-channel audio with the encoding defined here: https://cloud.google.com/speech/reference/rest/v1/RecognitionConfig#AudioEncoding. From inside the API \ Audio folder, refer to audio arvind_sample_recording.wav. The content of the audio file ...

Get Google Cloud AI Services Quick Start Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.