Using Google STT API: Problem about setting the encoding parameter
If you tried to send an mp3 or m4a file into Google Speech (Speech to Text: STT) API. The return is an empty
git:(master) ✗ node src/call_stt.js
Transcription is null.
Google says this occurred from the wrong setting with encoding configuration.
Google Speech Recognition API Result is Empty
Google Speech Recognition API Result could be Empty because parameters are incorrect. My suggestion is first to analyze…
There is another way with converting mp3 or m4a into .wav file with encoding:’LINEAR16' configuration.
Converts an audio file to LINEAR16 Google-speech compatible file. This project has only been tested with m4a but should…
You might be able to use this module and works well according to your environment and situation.
But, If you can, just use the .wav file. and you can skip the encoding setting in the config.
And also you can skip the sampleRateHertz parameter also