KeywordDetector
Types
Link copied to clipboard
The observer for keyword detector
Link copied to clipboard
Interface of a observer to be called when there has been an change of state
Link copied to clipboard
Enum class for state
Functions
Link copied to clipboard
abstract fun addOnStateChangeListener(listener: KeywordDetector.OnStateChangeListener)
Content copied to clipboard
Add observer
Link copied to clipboard
Get current state
Link copied to clipboard
Get supported audio formats. Should use the audio format in this list at startDetect. If not supported format provided, startDetect return true. but, DetectorResultObserver.onError will be called.
Link copied to clipboard
abstract fun removeDetectorStateObserver(listener: KeywordDetector.OnStateChangeListener)
Content copied to clipboard
Remove observer
Link copied to clipboard
abstract fun startDetect( inputStream: SharedDataStream, audioFormat: AudioFormat, observer: KeywordDetector.DetectorResultObserver): Boolean
Content copied to clipboard
Start Detector
Link copied to clipboard
Stop Detector If active state, DetectorResultObserver.onStopped and a state will be changed to State.INACTIVE abd OnStateChangeListener.onStateChange called. Otherwise, nothing to happen.