I am trying to use Google's Speech Recognition API from a shell command, but I am having issues.
My Shell file contains the following Code:
arecord -D plughw:1,0 -q -f cd -t wav -R 16000 | flac - -f --best --sample-rate=16000 -s -o test.flac
wget -q -U "Mozilla/5.0" --post-file test.flac --header "Content-Type: audio/x-flac; rate=16000" -O - "http://www.google.com/speech-api/v2/recognize?client=chromium&lang=en-US&key=MyKey" | >stt.txt
I have validated that the test.flac file does contain my recording. Also, I have confirmed that the Google Server is indeed receiving my requests. Meanwhile, I am returned a Null result from the Web Server.