Sphinx-4 Hello Digits Demo

This is a simple command line program that shows how to write a simple Sphinx-4 application that recognizes connected digits, using a BNF-style grammar. When you run the demo, the following will show up, just start saying numbers.

Say any digit(s): e.g. "two oh oh four", "three six five".
Start speaking. Press Ctrl-C to quit.

You said: one two three four

Start speaking. Press Ctrl-C to quit.

You said: four five six nine

Start speaking. Press Ctrl-C to quit.
      

Building

Check the bin directory to see if it has the HelloDigits.jar file. If not, type the following in a shell from the Sphinx-4 top level directory:

ant -find demo.xml

Running

First make sure that you have JSAPI setup correctly. Then, to run the demo, go to the top level directory and type:

sphinx4> java -jar bin/HelloDigits.jar

NOTE:

  1. Make sure that you are using JavaTM 2 SDK, Standard Edition, v1.4 or higher.
  2. If you are running Linux and have problems with the audio, please read the Linux JavaSound section.
  3. 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.