any one give me solutions for speech to text in java
Oleg Tikhonov
Ranch Hand
Joined: Aug 02, 2008
Posts: 55
posted
0
Hello,
Some useful information might be found here and here.
It includes JSAPI FAQ and Speech recognition topic.
Regards,
Oleg.
vasanth raman
Greenhorn
Joined: Aug 13, 2009
Posts: 24
posted
0
Thanks i already tried javax.speech.recognition
while executing that program it will show the null pointer exception
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35223
7
posted
0
While the information you gave about what you tried is extremely limited, I'm guessing that you didn't install a speech recognition engine. The javax.speech API doesn't come with one, and to my knowledge there isn't one freely available - you may have to opt for a commercial solution.
This is the code i am using speech to text i have installed micro-soft speech engine when i run this code it show null pointer exception in rec.allocate(); line
import javax.speech.*;
import javax.speech.recognition.*;
import java.io.FileReader;
import java.util.*;
public class HelloWorld extends ResultAdapter {
public static void main(String args[]) {
try {
// Create a recognizer that supports English.
rec = Central.createRecognizer(new EngineModeDesc(Locale.ENGLISH));
// Start up the recognizer
rec.allocate();