text-to-speech
You can use the flite filter in ffmpeg. You'll have to compile it:
Code:
sudo apt-get install build-essential flite1-dev
wget http://ffmpeg.org/releases/ffmpeg-snapshot.tar.bz2
tar xjvf ffmpeg-snapshot.tar.bz2
cd ffmpeg
./configure --enable-libflite --enable-gpl
make -j4
Now run your new ffmpeg binary (notice the ./ before the ffmpeg):
Code:
cd ~/ffmpeg
./ffmpeg -f lavfi -i flite=textfile=speech.txt output.wav
or enter the text in your command instead of using speech.txt:
Code:
cd ~/ffmpeg
./ffmpeg -f lavfi -i flite=text='Corn? When did I eat corn?' output.wav
I haven't actually tested these commands so take a look at the docs too.
Also see:
Bookmarks