FreeTTS

From HalfgeekKB
Jump to navigation Jump to search

FreeTTS is a text-to-speech engine written in Java, available from http://freetts.sf.net/.

Reading text into a WAV file

The following command reads src.txt into dst.wav.

java -jar (installdir)/lib/freetts.jar -dumpAudio dst.wav -file src.txt

For decoding purposes, it may be important to note that the produced file (on my system, anyway) is PCM, 16000Hz, mono, 16-bit. Getting it into CD-quality form with SoX isn't hard, but it seems to take two passes (one for samplerate and one for channel) or it will screw up. Try

sox dst.wav -r 44100 -c 1 tmp.wav
sox tmp.wav -r 44100 -c 2 dst.wav