-
-
Save doniks/cfc3ce845b8f811f789a331ce03679f2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
arecord -f cd -t wav -r 16000 -d 5 | flac -f - -o sample.flac | |
wget -q -U "Mozilla/5.0" --post-file sample.flac --header="Content-Type: audio/x-flac; rate=16000" -O - \ | |
"http://www.google.com/speech-api/v1/recognize?lang=en-us&client=chromium" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment