1

result.getHypothesis() doesn't always give me best result so I want multiple results after recognization. I tried the code below, it returns me an empty array. Recognizer is an object of LiveSpeechRecognizer.

SpeechResult result = recognizer.getResult();
System.out.println( result.getNbest(10));
Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
parth karia
  • 230
  • 2
  • 7

1 Answers1

2

If you use grammars, n-best is not supported yet. If you use language models you should see n-best results as in Transcriber demo.

Nikolay Shmyrev
  • 24,897
  • 5
  • 43
  • 87