SpeechProcessorDelegate

class SpeechProcessorDelegate(asrAgent: ASRAgentInterface)

This class delegate SpeechProcessor to NUGU SDK to avoid conflict with NUGU SDK.

Constructors

Link copied to clipboard
fun SpeechProcessorDelegate(asrAgent: ASRAgentInterface)

Types

Link copied to clipboard
object Companion
Link copied to clipboard
interface Listener : AudioEndPointDetector.OnStateChangedListener

Functions

Link copied to clipboard
fun addListener(listener: SpeechProcessorDelegate.Listener)

Add a listener to be called when a state changed.

Link copied to clipboard
fun getState(): AudioEndPointDetector.State
Link copied to clipboard
fun removeListener(listener: SpeechProcessorDelegate.Listener)

Remove a listener

Link copied to clipboard
fun start(    audioInputStream: SharedDataStream?,     audioFormat: AudioFormat?,     wakeupInfo: WakeupInfo?,     epdParam: EndPointDetectorParam?,     callback: ASRAgentInterface.StartRecognitionCallback?,     initiator: ASRAgentInterface.Initiator)

Request starting epd to ASRAgentInterface

Link copied to clipboard
fun stop(cancel: Boolean = true)

Request stop epd to ASRAgentInterface