On Fedora you can use festival. if it's not installed (as root):
Code:
yum install festival
You can then say something with, for example:
Code:
echo "This is a test" | festival --tts
If you want to save the speech in a file, then:
Code:
echo "This is a test" | text2wave -o test.wav