OnResultListener

interface OnResultListener

Event(Result) Listener for speech to text(STT)

Functions

Link copied to clipboard
abstract fun onCancel(cause: ASRAgentInterface.CancelCause, header: Header)

Called when canceled.

Link copied to clipboard
abstract fun onCompleteResult(result: String, header: Header)

Called when received a complete recognized text.

Link copied to clipboard
abstract fun onError(    type: ASRAgentInterface.ErrorType,     header: Header,     allowEffectBeep: Boolean = true)

Called when occur error on recognizing.

Link copied to clipboard
abstract fun onNoneResult(header: Header)

Called when there is no matched result.

Link copied to clipboard
abstract fun onPartialResult(result: String, header: Header)

Called when received a partial recognized text.