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" !
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 {
.......
/----------------------------/
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
of course sphinx-4 is lose the time.
it is a product dead short or medium tern
Use loquendo