I have used google cloud speech-to-text API to convert audio to text.
For .raw
files it works fine
But for .wav
files it gives me error something like:
Google::Gax::RetryError Exception: GaxError Exception occurred in retry method that was not classified as transient, caused by 3:Must use single channel (mono) audio, but WAV header indicates 2 channels.
I am using the ruby implementation of Speech-to-text API.
The test.wav file I already saved in assets.
I have used MULAW as encoding and sampling rate is omitted.
Can someone help me with this ?