In-class Speech Lab using Sphinx4
The task:
Modify the Sphinx4 Hello World example to use a different dictionary and grammar.
Try using different parameters for the frequently tuned properties in the config file and see how they compare.
Prepare to share your experience with the class.
~~~~~~~ STEPS ~~~~~~~~
1. Download Sphinx4 source
http://sourceforge.net/projects/cmusphinx/files/sphinx4/1.0%20beta3/sphinx4-1.0beta3-src.zip/download
2. Build
Instructions for building:
http://cmusphinx.sourceforge.net/sphinx4/#source
Make sure to also follow instructions for installing JSAPI:
http://cmusphinx.sourceforge.net/sphinx4/doc/jsapi_setup.html
These instructions assume you are in terminal and have unpacked the Sphinx4 source
3. Get all tutorials running.
Instructions here
Hint:
The tutorial instructions assume you are in the top-level of the Sphinx directory using a terminal application.
java -Xmx256m -jar bin/HelloWorld.jar
Invokes Java with a heap memory allocation of 256Mb.
Tells Java to run the jar file specified.
Useful info on Java command line options here:
http://java.sun.com/j2se/1.3/docs/tooldocs/solaris/java.html
4. Modify a tutorial
Tutorial Source Code is located in
src/apps/edu/cmu/sphinx/demo
Demos can be rebuilt on the commandline:
$ ant demos
Here is a link to a
description of modifying the Sphinx Hello World Example
~~~~~~~~~~~~~~~~~~~~
Helpful resources
Programmer's guide
Forums
Documentation describing the config file
Info on creating Java Grammars