SpeechRecognizerAggregator
class SpeechRecognizerAggregator( keywordDetector: KeywordDetector?, speechProcessor: SpeechProcessorDelegate, audioProvider: AudioProvider, handler: Handler = Handler(Looper.getMainLooper()), threadFactory: ThreadFactory = Executors.defaultThreadFactory()) : SpeechRecognizerAggregatorInterface
Content copied to clipboard
Constructors
Link copied to clipboard
fun SpeechRecognizerAggregator( keywordDetector: KeywordDetector?, speechProcessor: SpeechProcessorDelegate, audioProvider: AudioProvider, handler: Handler = Handler(Looper.getMainLooper()), threadFactory: ThreadFactory = Executors.defaultThreadFactory())
Content copied to clipboard
Types
Functions
Link copied to clipboard
open override 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
open override fun removeListener(listener: SpeechRecognizerAggregatorInterface.OnStateChangeListener)
Content copied to clipboard
Remove a listener
Link copied to clipboard
open override fun startListening( wakeupInfo: WakeupInfo?, epdParam: EndPointDetectorParam?, callback: ASRAgentInterface.StartRecognitionCallback?, initiator: ASRAgentInterface.Initiator)
Content copied to clipboard
Start keyword detector.
Link copied to clipboard
open override fun startListeningWithTrigger( epdParam: EndPointDetectorParam?, triggerCallback: SpeechRecognizerAggregatorInterface.TriggerCallback?, listeningCallback: ASRAgentInterface.StartRecognitionCallback?)
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