NuguAndroidClient
Implementation of ClientHelperInterface for Android
This class is a basic client to interact with NUGU at Android.
android.app.Application's onCreate is a good place to initialize.
It require many components to initialize. so, we provide a Builder to create and the most of components set to default.
Types
Link copied to clipboard
class Builder( context: Context, authDelegate: AuthDelegate, defaultAudioProvider: AudioProvider)
Content copied to clipboard
The builder for NuguAndroidClient
Functions
Link copied to clipboard
open override fun addASRListener(listener: ASRAgentInterface.OnStateChangeListener)
Content copied to clipboard
Link copied to clipboard
open override fun addASRResultListener(listener: ASRAgentInterface.OnResultListener)
Content copied to clipboard
Link copied to clipboard
open override fun addAudioPlayerListener(listener: AudioPlayerAgentInterface.Listener)
Content copied to clipboard
Link copied to clipboard
open override fun addConnectionListener(listener: ConnectionStatusListener)
Content copied to clipboard
Link copied to clipboard
open override fun addDialogUXStateListener(listener: DialogUXStateAggregatorInterface.Listener)
Content copied to clipboard
Link copied to clipboard
open override fun addOnDirectiveHandlingListener(listener: DirectiveSequencerInterface.OnDirectiveHandlingListener)
Content copied to clipboard
Link copied to clipboard
open override fun addOnSendMessageListener(listener: MessageSender.OnSendMessageListener)
Content copied to clipboard
Link copied to clipboard
open override fun addReceiveDirectivesListener(listener: DirectiveGroupProcessorInterface.Listener)
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun addSystemAgentListener(listener: SystemAgentInterface.Listener)
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun removeASRListener(listener: ASRAgentInterface.OnStateChangeListener)
Content copied to clipboard
Link copied to clipboard
open override fun removeASRResultListener(listener: ASRAgentInterface.OnResultListener)
Content copied to clipboard
Link copied to clipboard
open override fun removeAudioPlayerListener(listener: AudioPlayerAgentInterface.Listener)
Content copied to clipboard
Link copied to clipboard
open override fun removeConnectionListener(listener: ConnectionStatusListener)
Content copied to clipboard
Link copied to clipboard
open override fun removeDialogUXStateListener(listener: DialogUXStateAggregatorInterface.Listener)
Content copied to clipboard
Link copied to clipboard
open override fun removeOnDirectiveHandlingListener(listener: DirectiveSequencerInterface.OnDirectiveHandlingListener)
Content copied to clipboard
Link copied to clipboard
open override fun removeOnSendMessageListener(listener: MessageSender.OnSendMessageListener)
Content copied to clipboard
Link copied to clipboard
open override fun removeReceiveDirectivesListener(listener: DirectiveGroupProcessorInterface.Listener)
Content copied to clipboard
Link copied to clipboard
open override fun removeSpeakerListener(listener: SpeakerManagerObserver)
Content copied to clipboard
Link copied to clipboard
open override fun removeSystemAgentListener(listener: SystemAgentInterface.Listener)
Content copied to clipboard
Link copied to clipboard
open override fun requestTextInput( text: String, playServiceId: String?, token: String?, source: String?, referrerDialogRequestId: String?, includeDialogAttribute: Boolean, listener: TextAgentInterface.RequestListener?): String?
Content copied to clipboard
Link copied to clipboard
open override fun requestTTS( text: String, format: TTSAgentInterface.Format, playServiceId: String?, listener: TTSAgentInterface.OnPlaybackListener?): String?
Content copied to clipboard
Link copied to clipboard
open override fun setDisplayRenderer(renderer: DisplayAggregatorInterface.Renderer?)
Content copied to clipboard
Link copied to clipboard
open override fun setStateProvider(namespaceAndName: NamespaceAndName, stateProvider: ContextStateProvider?)
Content copied to clipboard
Link copied to clipboard
open override fun startRecognition( audioInputStream: SharedDataStream?, audioFormat: AudioFormat?, wakeupInfo: WakeupInfo?, param: EndPointDetectorParam?, callback: ASRAgentInterface.StartRecognitionCallback?, initiator: ASRAgentInterface.Initiator)
Content copied to clipboard
Link copied to clipboard