python-docs-samples icon indicating copy to clipboard operation
python-docs-samples copied to clipboard

audio format for Speech

Open jcastill0 opened this issue 10 years ago • 1 comments

I tried mp3 files using the client api/transcribe.py and it returned an empty JSON file. I realized that the sample audio files included were .raw files and it works with those type of files.

How do I convert mp3 or m4a to raw audio files? Or how do I generate .raw files?

jcastill0 avatar Nov 07 '16 00:11 jcastill0

Please checkout https://cloud.google.com/speech/support and look into sox.

puneith avatar Nov 07 '16 00:11 puneith