Package com.keenresearch.keenasr
Interface KASRRecognizerTriggerPhraseListener
public interface KASRRecognizerTriggerPhraseListener
KASRRecognizerTriggerPhraseListener provides an interface that your class needs to implement in order
to receive trigger phrase callbacks from the KASRRecognizer instance.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onTriggerPhrase
(KASRRecognizer recognizer) This method is called when recognizer setup with a decoding graph built with trigger phrase support, recognizes the trigger phrase.
-
Method Details
-
onTriggerPhrase
This method is called when recognizer setup with a decoding graph built with trigger phrase support, recognizes the trigger phrase. You can use this method to provide visual or audio indication to the user that the trigger phrase has been recognized. If using audio cues, keep in mind that those may affect speech recognition accuracy since the output audio will be picked up by the microphone.- Parameters:
recognizer
- recognizer that recognized trigger phrase.
-