Advertisement
Guest User

C:\Users\Jeebiss\AppData\Local\Temp\fz3temp-1\voice-recog 2.sh - Notepad++

a guest
Sep 17th, 2013
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. arecord -D "plughw:1,0" -f cd -t wav -d 5 -r 16000 | flac - -f --best --sample-rate 16000 --channels=2 -o out.flac
  2. 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
  3. #curl -v -X POST \
  4. #--data-binary @out.flac \
  5. #--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' \
  6. #--header 'Content-Type: audio/x-flac; rate=16000;' \
  7. #'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