Package com.keenresearch.keenasr
Interface KASRRecognizerListener
public interface KASRRecognizerListener
KASRRecognizerListener provides an interface that your class needs to implement in order
to receive partial and final result callbacks from the KASRRecognizer instance.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onFinalResponse
(KASRRecognizer recognizer, KASRResponse response) This method is called when recognizer has finished the recognition on its own because one of the VAD rules has triggered.void
onPartialResult
(KASRRecognizer recognizer, KASRResult result) This method is called when recognizer has a new (different than before) partial recognition result.
-
Method Details
-
onPartialResult
This method is called when recognizer has a new (different than before) partial recognition result. Internal timer that runs every 100ms checks for the partial results and calls this method if result is different than before.- Parameters:
recognizer
- recognizer that's producing this resultresult
- partial result Note: partial result does not contain confidence and timing information.
-
onFinalResponse
This method is called when recognizer has finished the recognition on its own because one of the VAD rules has triggered. At this time, recognizer is not listening any more.- Parameters:
recognizer
- recognizer that's producing this resultresponse
- an instance of KASRResponse that contains various information about the response, including an instance of KASRResult object. Note:
-