Speech Recognizer Execution

Hmm …. There was lot of request to correct errors and exceptions from people who have tried Speech Recogniser that I have discussed early in one of my post.  Many have tried and frustrated by the exceptions and errors that is coming from the speech engine.

Few have got trouble in executing & configuring and few have left trying . However to Put an end to all these things I have made the executable program possibly after configuring the Speech Engine , I have also modified the Gramm file to simply the understanding. You can download and make use of it

Download : SpeechRecognizerDemo

To reduce the complexity , configuration setting are already set into package so no need make any change

Steps to execute : –

Download the package , unzip it.

You will get folder named 2000

Open netbeans , Go to File Open Project → Select the above extracted folder (2000)

Now Right click project, select Properties

Under category Go to Run tab ,

Then in VM Options type     -Xmx256m

Click ok

Speech Recognizer Execution

Speech Recognizer Execution

Now Expand the project 2000 open HelloWorld.java , Double click on Editor panel (this indicates netbeans that current program is be executed)

Go to Run on the file menu , click Run File

Speech Engine Require more Heap memory and it will take few seconds to load.

Now You can respond to your program

Speech Recognizer Output

Speech Recognizer Output

Note :-

Speech Engine requires silent environment , Accuracy will not there if you run on noisy environment.

Speech Engine is not human to react immediately to your response. It Will take time to process your singles.

Speech Engine behaves differently to Window and Linux machine as the micro phone properties are handled differently in Unix based system

Download : SpeechRecognizerDemo


18 Comments

  1. Yiannis wrote
    at 9:06 AM - 23rd August 2011 Permalink

    Hi Shakthydoss.
    Can you give another link for the package because this is broken…
    Thanx

  2. shakthydoss wrote
    at 4:42 PM - 24th December 2011 Permalink

    Hi ,

    Use This alternative Link
    http://fliiby.com/file/1110430/yngya2tm6r8.html

  3. raj wrote
    at 9:12 PM - 15th October 2012 Permalink

    without using eclipse or netbeans how it can be done…
    Plz help

  4. shakthydoss wrote
    at 1:26 PM - 16th October 2012 Permalink

    Hi raj ,

    For setting heap size :
    > java –Xmx256m javaprogam

  5. Dayanand C Adep wrote
    at 1:52 PM - 23rd November 2012 Permalink

    Exception in thread “main” java.lang.NoSuchFieldError: engineListeners
    Java Result: 1
    BUILD SUCCESSFUL (total time: 9 seconds)
    at com.sun.speech.engine.recognition.BaseRecognizer.fireRecognizerSuspended(BaseRecognizer.java:922)

    this error is occurring when your code is executed

  6. Tharee wrote
    at 10:18 AM - 19th April 2013 Permalink

    Exception in thread “main” java.lang.NoSuchFieldError: engineListeners
    at com.sun.speech.engine.recognition.BaseRecognizer.fireRecognizerSuspended(BaseRecognizer.java:922)
    at com.sun.speech.engine.recognition.BaseRecognizer.dispatchSpeechEvent(BaseRecognizer.java:1262)
    at com.sun.speech.engine.SpeechEventUtilities.postSpeechEvent(SpeechEventUtilities.java:201)
    at com.sun.speech.engine.SpeechEventUtilities.postSpeechEvent(SpeechEventUtilities.java:132)
    at com.sun.speech.engine.recognition.BaseRecognizer.postRecognizerSuspended(BaseRecognizer.java:912)
    at com.sun.speech.engine.recognition.BaseRecognizer.commitChanges(BaseRecognizer.java:358)
    at edu.cmu.sphinx.jsapi.JSGFGrammar.commitChanges(JSGFGrammar.java:536)
    at edu.cmu.sphinx.jsapi.JSGFGrammar.createGrammar(JSGFGrammar.java:243)
    at edu.cmu.sphinx.linguist.language.grammar.Grammar.allocate(Grammar.java:101)
    at edu.cmu.sphinx.linguist.flat.FlatLinguist.allocate(FlatLinguist.java:229)
    at edu.cmu.sphinx.decoder.search.SimpleBreadthFirstSearchManager.allocate(SimpleBreadthFirstSearchManager.java:603)
    at edu.cmu.sphinx.decoder.AbstractDecoder.allocate(AbstractDecoder.java:67)
    at edu.cmu.sphinx.recognizer.Recognizer.allocate(Recognizer.java:157)
    at edu.cmu.sphinx.demo.helloworld.HelloWorld.main(HelloWorld.java:37)
    Java Result: 1
    It’s occurd in this line.. why is that??
    recognizer.allocate();

  7. harsimran wrote
    at 6:48 PM - 4th September 2013 Permalink

    sir link broken
    i want to make a speeh reconised sfotware but my voce (uses spinx4 and freetts libraries) doesn’t work with netbeans

  8. shakthydoss wrote
    at 7:12 PM - 4th September 2013 Permalink

    Hi,

    I have moving the code github.
    possibly after few minutes you can you can download file. https://github.com/shakthydoss/SpeechRecognizerDemo

  9. harsimran wrote
    at 1:18 PM - 4th September 2013 Permalink

    sir link broken
    i want to make a speeh reconised sfotware but my voce (uses spinx4 and freetts libraries) doesn’t work with netbeans

  10. shakthydoss wrote
    at 1:42 PM - 4th September 2013 Permalink

    Hi,

    I am moving the code to github.
    possibly after few minutes you can you can download file. https://github.com/shakthydoss/SpeechRecognizerDemo

  11. shakthydoss wrote
    at 7:22 PM - 4th September 2013 Permalink

    Hi all,

    please use the github link to download the demo application.
    https://github.com/shakthydoss/SpeechRecognizerDemo

  12. shakthydoss wrote
    at 7:43 PM - 4th September 2013 Permalink

    https://github.com/shakthydoss/SpeechRecognizerDemo

  13. shakthydoss wrote
    at 1:52 PM - 4th September 2013 Permalink

    Hi all,

    please use the github link to download the demo application.
    https://github.com/shakthydoss/SpeechRecognizerDemo

  14. shakthydoss wrote
    at 2:13 PM - 4th September 2013 Permalink

    https://github.com/shakthydoss/SpeechRecognizerDemo

  15. harsimran wrote
    at 1:08 PM - 5th September 2013 Permalink

    i m getting the same problem in netbeans ide

  16. shakthydoss wrote
    at 1:40 PM - 5th September 2013 Permalink

    @harsimran you’re welcome

  17. harsimran wrote
    at 7:38 AM - 5th September 2013 Permalink

    i m getting the same problem in netbeans ide

  18. shakthydoss wrote
    at 8:10 AM - 5th September 2013 Permalink

    What is the exception and did you tried in eclipse.

Post a Comment

Your email is never published nor shared. Required fields are marked *