This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Speech to text

 
vasanth raman
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
any one give me solutions for speech to text in java
 
Oleg Tikhonov
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

Some useful information might be found here and here.
It includes JSAPI FAQ and Speech recognition topic.


Regards,
Oleg.
 
vasanth raman
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks i already tried javax.speech.recognition
while executing that program it will show the null pointer exception
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
vasanth raman
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic