OnStateChangedListener

interface OnStateChangedListener

Listener to notified on State change

Functions

Link copied to clipboard
abstract fun onError(type: AudioEndPointDetector.ErrorType, e: Exception? = null)

Called when occur error

Link copied to clipboard
abstract fun onExpectingSpeech()

Called when ready to listening(the epd start)

Link copied to clipboard
abstract fun onSpeechEnd(eventPosition: Long?)

Called when the speech end

Link copied to clipboard
abstract fun onSpeechStart(eventPosition: Long?)

Called when the speech start

Link copied to clipboard
abstract fun onStop()

Called when stopped by stopDetector

Link copied to clipboard
abstract fun onTimeout(type: AudioEndPointDetector.TimeoutType)

Called when the timeout occur

Inheritors

Link copied to clipboard