1
result.getHypothesis()
並不總是給我最好的結果,所以我想在識別後得到多個結果。我試過下面的代碼,它返回一個空數組。識別器是LiveSpeechRecognizer的一個對象。如何使用SpeechResult api獲取多個演講結果在sphinx 4中?
SpeechResult result = recognizer.getResult();
System.out.println(result.getNbest(10));