SpeechRecognizerAggregatorInterface
Utility interface for speech recognition
Integrate functionality of keyword detector and speech processor and input management.
the speech processor has in charge of three roles:
EPD : refer to com.skt.nugu.sdk.agent.asr.audio.AudioEndPointDetector
STT : convert speech to text
IP(Input Processing) : send request to NUGU
Types
Link copied to clipboard
Link copied to clipboard
State of SpeechRecognizerAggregatorInterface
Link copied to clipboard
Functions
Link copied to clipboard
abstract fun addListener(listener: SpeechRecognizerAggregatorInterface.OnStateChangeListener)
Content copied to clipboard
Add a listener to be called when a state changed.
Link copied to clipboard
Get state of SpeechRecognizerAggregatorInterface
Link copied to clipboard
abstract fun removeListener(listener: SpeechRecognizerAggregatorInterface.OnStateChangeListener)
Content copied to clipboard
Remove a listener
Link copied to clipboard
abstract fun startListening( wakeupInfo: WakeupInfo? = null, epdParam: EndPointDetectorParam? = null, callback: ASRAgentInterface.StartRecognitionCallback? = null, initiator: ASRAgentInterface.Initiator)
Content copied to clipboard
Start keyword detector.
Link copied to clipboard
abstract fun startListeningWithTrigger( epdParam: EndPointDetectorParam? = null, triggerCallback: SpeechRecognizerAggregatorInterface.TriggerCallback? = null, listeningCallback: ASRAgentInterface.StartRecognitionCallback? = null)
Content copied to clipboard
Start recognizing
Link copied to clipboard
Stop end point detector. If cancel is true, stop epd and cancel asr processing. Otherwise, stop epd but finish asr processing.
Link copied to clipboard
Stop keyword detector