NuguClient

public class NuguClient
extension NuguClient: MicInputProviderDelegate

<#Description#>

  • <#Description#>

    Declaration

    Swift

    public let contextManager: ContextManageable
  • <#Description#>

    Declaration

    Swift

    public let focusManager: FocusManageable
  • <#Description#>

    Declaration

    Swift

    public let streamDataRouter: StreamDataRoutable
  • <#Description#>

    Declaration

    Swift

    public let directiveSequencer: DirectiveSequenceable
  • <#Description#>

    Declaration

    Swift

    public let playSyncManager: PlaySyncManageable
  • <#Description#>

    Declaration

    Swift

    public let dialogAttributeStore: DialogAttributeStoreable
  • <#Description#>

    Declaration

    Swift

    public let sessionManager: SessionManageable
  • <#Description#>

    Declaration

    Swift

    public let systemAgent: SystemAgentProtocol
  • <#Description#>

    Declaration

    Swift

    public let interactionControlManager: InteractionControlManageable
  • <#Description#>

    Declaration

    Swift

    public let dialogStateAggregator: DialogStateAggregator
  • <#Description#>

    Declaration

    Swift

    public let asrAgent: ASRAgentProtocol
  • <#Description#>

    Declaration

    Swift

    public let ttsAgent: TTSAgentProtocol
  • <#Description#>

    Declaration

    Swift

    public let textAgent: TextAgentProtocol
  • <#Description#>

    Declaration

    Swift

    public let audioPlayerAgent: AudioPlayerAgentProtocol
  • <#Description#>

    Declaration

    Swift

    public let soundAgent: SoundAgentProtocol
  • <#Description#>

    Declaration

    Swift

    public let sessionAgent: SessionAgentProtocol
  • <#Description#>

    Declaration

    Swift

    public let chipsAgent: ChipsAgentProtocol
  • <#Description#>

    Declaration

    Swift

    public let utilityAgent: UtilityAgentProtocol
  • <#Description#>

    Declaration

    Swift

    public lazy var displayAgent: DisplayAgentProtocol { get set }
  • <#Description#>

    Declaration

    Swift

    public lazy var extensionAgent: ExtensionAgentProtocol { get set }
  • <#Description#>

    Declaration

    Swift

    public lazy var locationAgent: LocationAgentProtocol { get set }
  • <#Description#>

    Declaration

    Swift

    public lazy var phoneCallAgent: PhoneCallAgentProtocol { get set }
  • <#Description#>

    Declaration

    Swift

    public lazy var mediaPlayerAgent: MediaPlayerAgentProtocol { get set }
  • <#Description#>

    Declaration

    Swift

    public private(set) lazy var keywordDetector: KeywordDetector { get set }
  • <#Description#>

    Declaration

    Swift

    public init(delegate: NuguClientDelegate)

    Parameters

    delegate

    <#delegate description#>

Helper functions

  • <#Description#>

    Declaration

    Swift

    func startReceiveServerInitiatedDirective(completion: ((StreamDataState) -> Void)? = nil)

    Parameters

    completion

    <#completion description#>

  • <#Description#>

    Declaration

    Swift

    func stopReceiveServerInitiatedDirective()
  • Send event that needs a text-based recognition

    This function cancel speech recognition.(e.g. ASRAgentProtocol.startRecognition(:initiator)) Use NuguClient.textAgent.requestTextInput directly to request independent of speech recognition.

    Declaration

    Swift

    @discardableResult
    func requestTextInput(text: String, token: String? = nil, requestType: TextAgentRequestType, completion: ((StreamDataState) -> Void)? = nil) -> String

    Parameters

    text

    The text to be recognized

    token

    <#token description#>

    requestType

    <#requestType description#>

    completion

    The completion handler to call when the request is complete

    Return Value

    The dialogRequestId for request.

MicInputProviderDelegate