Menu

help please

Help
2009-06-12
2012-09-22
  • Antonio Jaime Rodriguez Medina

    hello, I am working on a project for elderly people and i would like to use sphinx; but I have a problem because there are some erros and I do not find solutions.

    The project is very important and our project engineers have been thinking of using loquendo or sphinx. I would like to use sphinx but I am not able to compile the example "HelloWorld" !

    javac cp jsapi.jar HelloWorld.java
    java cp .;jsapi.jar HelloWorld a.gram

    (a.gram is the grammar)

    Problem:

    I have the HelloWorld.java and I also have the jsapi.jar. The code of HelloWorld is simple:

    I import this libraries and my class is extended of ResultAdapter
    /---------------------------------------/

    import javax.speech.;
    import javax.speech.recognition.
    ;
    import java.io.*;
    import java.util.Locale;
    public class HelloWorld extends ResultAdapter {

    static Recognizer rec;
    

    .......

    /----------------------------/

    In the main when I called rec , the compiler says (*)

    " java.lang.NullPointerException"

    rec = Central.createRecognizer(newEngineModeDesc(Locale.ENGLISH));

    (*)rec.allocate(); (in this line, fail in the constructor)

    thanks in advance

    all the best
    Jaime Rodriguez

     
    • Antonio Jaime Rodriguez Medina

      of course sphinx-4 is lose the time.
      it is a product dead short or medium tern

       
    • Nickolay V. Shmyrev

      Use loquendo

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.