SpeechRecognizerAggregatorInterface

interface 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:

Types

Link copied to clipboard
interface OnStateChangeListener
Link copied to clipboard
Link copied to clipboard
interface TriggerCallback

Functions

Link copied to clipboard
abstract fun addListener(listener: SpeechRecognizerAggregatorInterface.OnStateChangeListener)

Add a listener to be called when a state changed.

Link copied to clipboard
abstract fun getState(): SpeechRecognizerAggregatorInterface.State
Link copied to clipboard
abstract fun isActive(): Boolean
Link copied to clipboard
abstract fun removeListener(listener: SpeechRecognizerAggregatorInterface.OnStateChangeListener)

Remove a listener

Link copied to clipboard
abstract fun startListening(    wakeupInfo: WakeupInfo? = null,     epdParam: EndPointDetectorParam? = null,     callback: ASRAgentInterface.StartRecognitionCallback? = null,     initiator: ASRAgentInterface.Initiator)

Start keyword detector.

Link copied to clipboard
abstract fun startListeningWithTrigger(    epdParam: EndPointDetectorParam? = null,     triggerCallback: SpeechRecognizerAggregatorInterface.TriggerCallback? = null,     listeningCallback: ASRAgentInterface.StartRecognitionCallback? = null)

Start recognizing

Link copied to clipboard
abstract fun stop()

Stop Recognizing

Link copied to clipboard
abstract fun stopListening(cancel: Boolean = true)

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
abstract fun stopTrigger()

Stop keyword detector

Inheritors

Link copied to clipboard