3

Tip #488   Create a Sound File from a Text File

You can create a wav file from a written text using one of these command

echo "It's such a beautiful day! Why are you in front of the computer?" | festival --tts

echo "It's such a beautiful day! Why are you in front of the computer?" | text2wave -scale 50 -o beautiful_day.wav

To use with a text file, just replace 'echo "..."' with 'cat filename'.
 
  • TAGS: