Page 156 - The Definitive Guide to Building Java Robots
P. 156
Preston_5564C05.fm Page 137 Tuesday, September 20, 2005 5:13 AM
CHAPTER 5
■ ■ ■
Speech
It usually takes more than three weeks to prepare a good impromptu speech.
— Mark Twain
5.0 Introduction
It won’t take you that long to get your PC to speak. Outside of download times, it should only
be about ten minutes. I’m also not going to use any microcontrollers in this chapter. This is
going to run 100 percent off a PC, so as long as you have a soundcard, speakers, and a micro-
phone, you’ll be in good shape.
To get started, follow these steps:
1. Make sure your soundcard is working.
2. Download and install FreeTTS from SourceForge from http://freetts.sourceforge.net.
This will install the Java Speech API (JSAPI) and the FreeTTS JARs.
3. Add the following JARs to your class path:
• jsapi.jar and freetts.jar: Both are available for download from http://freetts.
sourceforge.net.
• sphinx4.jar: Can be downloaded from http://cmusphinx.sourceforge.net.
• WSJ_8gau_13dCep_16k_40mel_130Hz_6800Hz.jar: Available for download from
http://cmusphinx.sourceforge.net/sphinx4/.
4. Download and install the Quadmore DLLs from the Source Code area of the Apress web
site (www.apress.com) or from www.quadmore.com.
137