KeensenseKeywordDetector
class KeensenseKeywordDetector( var keywordResource: KeensenseKeywordDetector.KeywordResources, powerMeasure: PowerMeasure? = null, assetManager: AssetManager? = null) : KeywordDetector
Content copied to clipboard
Constructors
Link copied to clipboard
fun KeensenseKeywordDetector( keywordResource: KeensenseKeywordDetector.KeywordResources, powerMeasure: PowerMeasure? = null, assetManager: AssetManager? = null)
Content copied to clipboard
Types
Link copied to clipboard
data class KeywordResources( val keyword: String, val netFilePath: String, val searchFilePath: String)
Content copied to clipboard
Functions
Link copied to clipboard
open override 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
open override fun removeDetectorStateObserver(listener: KeywordDetector.OnStateChangeListener)
Content copied to clipboard
Remove observer
Link copied to clipboard
open override 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.