Recognition class

ru.yandex.speechkit

public  class  Recognition 

The recognition result returned by the recognizer.

The recognition result contains a list of the best recognition hypotheses with their confidence scores (a so-called N-best list). The list of hypotheses is sorted in descending order, with the most likely recognition result at the top.

To get the list of hypotheses, use the Recognition.getHypotheses() method.

Constructors

Recognition(RecognitionHypothesis[] hypotheses)

Creates an object of the Recognition class.

Methods

StringgetBestResultText()

Text of the best hypothesis.

RecognitionHypothesis[]getHypotheses()

List of hypotheses sorted in descending order of confidence score.

Constructor descriptions

Recognition

public Recognition (RecognitionHypothesis[] hypotheses)

Creates an object of the Recognition class.

Parameters:
hypotheses

List of hypotheses.

Method descriptions

getBestResultText

public String getBestResultText ()

Text of the best hypothesis.

getHypotheses

public RecognitionHypothesis[] getHypotheses ()

List of hypotheses sorted in descending order of confidence score.