Sphinx-4 Classbased Language Model Demo

This is a simple command line program illustrating the use of class-based language models.

When you start up the demo program the following will show:

Loading Recognizer...

Sample sentences:

one ticket to boston
two tickets to washington for tuesday

Start speaking. Press Ctrl-C to quit.

one ticket to boston

The language model describing this recognizer is class-based.

The code for this demo is in ClassBased.java.

Building

Check the bin directory to see if it has the file ClassBased.jar. If not, type the following at the top level directory:

ant -find demo.xml

Running

To run the demo, type:

sphinx4> java -mx200m -jar bin/ClassBased.jar

NOTE:

  1. Make sure that you give it a large enough heap by putting in "-mx200m".
  2. Make sure that you are using JavaTM 2 SDK, Standard Edition, v1.4 or higher.
  3. If you are running Linux and have problems with the audio, please read the Linux JavaSound section.
  4. If you have the source distribution, make sure that the JAR file lib/sphinx4.jar is built. If not, go to the top level directory and type: ant


Copyright 1999-2004 Carnegie Mellon University.
Portions Copyright 2002-2004 Sun Microsystems, Inc.
Portions Copyright 2002-2004 Mitsubishi Electric Research Laboratories.
All Rights Reserved. Usage is subject to license terms.