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.
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
To run the demo, type:
sphinx4> java -mx312m -jar bin/HelloNGram.jar
Use the sentences in the test file to test the demo.
NOTE:
lib/sphinx4.jar is built. If not, go to the top level
directory and type: ant