Skip to content

Instantly share code, notes, and snippets.

@Unitecho
Created March 3, 2013 06:21
Show Gist options
  • Save Unitecho/5074920 to your computer and use it in GitHub Desktop.
Save Unitecho/5074920 to your computer and use it in GitHub Desktop.
google tts
rec -c 2 -r 16000 -s -t wav - | flac - -f --best --sample-rate 16000 -o out.flac
#arecord -f cd -t wav -d 5 -r 16000 | flac - -f --best --sample-rate 16000 -o out.flac
wget --post-file='out.flac' --header='Content-Type: audio/x-flac; rate=16000;' \
-O 'recognized.json' \
'https://www.google.com/speech-api/v1/recognize?lang=fr-FR'
ll
cat recognized.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment