DefaultClientSpeechRecognizer
class DefaultClientSpeechRecognizer( inputProcessorManager: InputProcessorManagerInterface, audioEncoder: Encoder, messageSender: MessageSender, endPointDetector: AudioEndPointDetector) : SpeechRecognizer, InputProcessor, AudioEndPointDetector.OnStateChangedListener
Content copied to clipboard
Constructors
Link copied to clipboard
fun DefaultClientSpeechRecognizer( inputProcessorManager: InputProcessorManagerInterface, audioEncoder: Encoder, messageSender: MessageSender, endPointDetector: AudioEndPointDetector)
Content copied to clipboard
Types
Functions
Link copied to clipboard
open override fun addListener(listener: SpeechRecognizer.OnStateChangeListener)
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun notifyResult(directive: Directive, payload: AsrNotifyResultPayload)
Content copied to clipboard
Link copied to clipboard
open override fun onError(type: AudioEndPointDetector.ErrorType, e: Exception?)
Content copied to clipboard
Called when occur error
Link copied to clipboard
Called when ready to listening(the epd start)
Link copied to clipboard
open override fun onReceiveDirectives(dialogRequestId: String, directives: List<Directive>): Boolean
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Called when the speech end
Link copied to clipboard
Called when the speech start
Link copied to clipboard
Called when the timeout occur
Link copied to clipboard
open override fun removeListener(listener: SpeechRecognizer.OnStateChangeListener)
Content copied to clipboard
Link copied to clipboard
open override fun start( audioInputStream: SharedDataStream, audioFormat: AudioFormat, context: String, wakeupInfo: WakeupInfo?, expectSpeechDirectiveParam: DefaultASRAgent.ExpectSpeechDirectiveParam?, attribute: DialogAttribute?, epdParam: EndPointDetectorParam, resultListener: ASRAgentInterface.OnResultListener?): SpeechRecognizer.Request?
Content copied to clipboard
Link copied to clipboard
open override fun stop(cancel: Boolean, cause: ASRAgentInterface.CancelCause)
Content copied to clipboard