Angelos Italianknows Blog

Sunday, 12 April 2015

Getting Text to Voice from Google

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



#!/bin/bash
say() { local IFS=+;/usr/bin/mplayer -ao alsa -really-quiet -noconsolecontrols "http://translate.google.com/translate_tts?tl=en&q=$*"; }
say $*
Short, Sharp and Sweet...

No comments:

Post a Comment