I'm currently goofing around trying to get some voice recognition working on my Raspberry-PI and whilst trying to get some Text to Speech working I stumbled across this little script which uses Google Translate to do the business. Very cute so i thought Id share!
Create a shell Script (e.g. speak.sh) and type these commands in
Short, Sharp and Sweet...
Create a shell Script (e.g. speak.sh) and type these commands in
#!/bin/bash
say() { local IFS=+;/usr/bin/mplayer -ao alsa -really-quiet -noconsolecontrols "http://translate.google.com/translate_tts?tl=en&q=$*"; }
say $*
|
No comments:
Post a Comment