Difference between revisions of "FreeTTS"
Jump to navigation
Jump to search
Line 7: | Line 7: | ||
java -jar (installdir)/lib/freetts.jar -dumpAudio dst.wav -file src.txt | 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 | + | 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 dst.wav -r 44100 -c 1 tmp.wav | ||
sox tmp.wav -r 44100 -c 2 dst.wav | sox tmp.wav -r 44100 -c 2 dst.wav |
Revision as of 10:55, 14 November 2005
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