Created
March 3, 2013 06:21
-
-
Save Unitecho/5074920 to your computer and use it in GitHub Desktop.
google tts
This file contains hidden or 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
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