aspose file tools*
The moose likes Other Java Products and Servers and the fly likes Speech to text Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Java Products and Servers
Bookmark "Speech to text" Watch "Speech to text" New topic
Author

Speech to text

vasanth raman
Greenhorn

Joined: Aug 13, 2009
Posts: 24
any one give me solutions for speech to text in java
Oleg Tikhonov
Ranch Hand

Joined: Aug 02, 2008
Posts: 55
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
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: 42599
    
  65
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.


Ping & DNS - my free Android networking tools app
vasanth raman
Greenhorn

Joined: Aug 13, 2009
Posts: 24
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();

} catch (Exception e) {
e.printStackTrace();
}
}
}
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42599
    
  65
Does that mean that "rec" is null? If so, consult the documentation for the circumstances under which Central.createRecognizer returns null.

Also make sure that the speech engine is installed in a way so that JSAPI can find and use it.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Speech to text