ASRAgentInterface
The public interface for ASRAgent
Types
Link copied to clipboard
The cause for cancel
Link copied to clipboard
The error type for ASR result
Link copied to clipboard
Link copied to clipboard
Interface of a callback to attach a set of request headers
Link copied to clipboard
Interface of a listener to be called when there has been an change of multi-turn state
Link copied to clipboard
Event(Result) Listener for speech to text(STT)
Link copied to clipboard
Interface of a listener to be called when there has been changes of state
Link copied to clipboard
interface StartRecognitionCallback : EventCallback<ASRAgentInterface.StartRecognitionCallback.ErrorType>
Content copied to clipboard
Functions
Link copied to clipboard
abstract fun addOnMultiturnListener(listener: ASRAgentInterface.OnMultiturnListener)
Content copied to clipboard
Add a listener to be called when multi-turn state changed.
Link copied to clipboard
abstract fun addOnResultListener(listener: ASRAgentInterface.OnResultListener)
Content copied to clipboard
Add a listener to be called when receive a result for ASR.
Link copied to clipboard
abstract fun addOnStateChangeListener(listener: ASRAgentInterface.OnStateChangeListener)
Content copied to clipboard
Add a listener to be called when a state changed.
Link copied to clipboard
abstract fun removeOnMultiturnListener(listener: ASRAgentInterface.OnMultiturnListener)
Content copied to clipboard
Remove a listener
Link copied to clipboard
abstract fun removeOnResultListener(listener: ASRAgentInterface.OnResultListener)
Content copied to clipboard
Remove a listener
Link copied to clipboard
abstract fun removeOnStateChangeListener(listener: ASRAgentInterface.OnStateChangeListener)
Content copied to clipboard
Remove a listener
Link copied to clipboard
abstract fun startRecognition( audioInputStream: SharedDataStream? = null, audioFormat: AudioFormat? = null, wakeupInfo: WakeupInfo? = null, param: EndPointDetectorParam? = null, callback: ASRAgentInterface.StartRecognitionCallback? = null, initiator: ASRAgentInterface.Initiator)
Content copied to clipboard
start recognition
Link copied to clipboard
abstract fun stopRecognition(cancel: Boolean = true, cause: ASRAgentInterface.CancelCause = CancelCause.LOCAL_API)
Content copied to clipboard
Stop current recognition