Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- arecord -D "plughw:1,0" -f cd -t wav -d 5 -r 16000 | flac - -f --best --sample-rate 16000 --channels=2 -o out.flac
- wget -4 -v -U "Mozilla/5.0" --post-file out.flac --header "Content-Type: audio/x-flac; rate=16000" -O - "http://www.google.com/speech-api/v1/recognize?lang=en-us&client=chromium" | cut -d\" -f12
- #curl -v -X POST \
- #--data-binary @out.flac \
- #--user-agent 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8) AppleWebKit/535.7 (KHTML, like Gecko) Chrome/16.0.912.77 Safari/535.7' \
- #--header 'Content-Type: audio/x-flac; rate=16000;' \
- #'https://www.google.com/speech-api/v1/recognize?client=chromium&lang=en-US&maxresults=10'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement