#!/bin/bash # convert a text file to rmd, using festival text to speech # settings in this script will work for a US robotics voicemodem # path to festival will vary with your installation if [ -z "$1" ]; then echo "usage is: tex2rmd textfile" exit fi NAME=$1 /home/phone/speech/festival/bin/text2wave $NAME -o $NAME.wav sox -v 2.5 $NAME.wav -r 8000 $NAME8.wav wavtopvf $NAME8.wav | pvftormd US_Robotics 1 > $NAME.rmd rm $NAME.wav $NAME8.wav vm play -s -v $NAME.rmd