text2audio 278 Bytes
Newer Older
nextime's avatar
nextime committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#!/bin/bash


phelp() 
{
   echo "USAGE: $0 <filename> <it|en> <\"string of text to be converted to audio\">"
   exit 0 
}

if [[ "$#" < 3 ]] ; then
   phelp
fi

if [ "$2" != "en" ] && [ "$2" != "it" ] ; then
   phelp
fi

python `dirname $0`/../domotika/clouds/google/tts.py $@