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.
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
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:
lib/sphinx4.jar
is built. If not, go to the top level
directory and type: ant