Skip to content

Instantly share code, notes, and snippets.

@jleedev
Forked from tensorpudding/say
Created April 8, 2011 20:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jleedev/910622 to your computer and use it in GitHub Desktop.
Save jleedev/910622 to your computer and use it in GitHub Desktop.
#!/bin/sh
# A very simplified version of OSX's say, using festival
# Usage: say [words]
if [ $# = 0 ]
then
echo "Usage: `basename $0` [words]"
exit 1
fi
if [ -x `which festival` ]
then
echo "$@" | festival --tts --pipe
exit 0
else
echo 'Could not find festival! Are you sure it is installed?'
exit 1
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment