Sphinx-4 Hello N-Gram Demo

This is a simple command line program that shows how to write a simple Sphinx-4 application that performs speech recognition based on an N-Gram language model. When you run the application:

Start speaking. Press Ctrl-C to quit.

You said: the green one on the right side

Start speaking. Press Ctrl-C to quit.

You said: it's the uppermost of three in a row

Start speaking. Press Ctrl-C to quit.
      

There is a test file which contains a list of sentences you can say to test the application.

Building

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

ant -find demo.xml

Running

First make sure that you have JSAPI setup correctly. Then, To run the demo, type:

sphinx4> java -mx312m -jar bin/HelloNGram.jar

Use the sentences in the test file to test the demo.

NOTE:

  1. Make sure that you give it a large enough heap by putting in "-mx312m".
  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.