#!/bin/sh ######################################################## # set -x # use for debug mode # ######################################################## # robo converts a given string into voice output. # # robo requires the packages "festival" and "sox". # # robo is released under GPL Version 2. # ################# USAGE ######################## # start robo with: # # robo hello world! # # robo will say "hello world!" # ################# VARIABLES ######################## TXTTMP=/tmp/robo.txt # where to save text # WAVTMP=/tmp/robo.wav # where to save audio # echo $@ > $TXTTMP # save input as text # text2wave $TXTTMP -o $WAVTMP # convert to audio # cat $TXTTMP # write to console # play -q $WAVTMP # play as audio # rm $TXTTMP # remove tmp txt # #rm $WAVTMP # remove tmp wav # ######################################################## # Contact linuxnetzer-at-netz10.de # # Visit http://netz10.de/2009/09/22/robo/ # ########################################################