-
-
Save jleedev/910622 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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