DialogServiceAdapter class

Extends

Constructors

DialogServiceAdapter(IAuthentication, IConnectionFactory, IAudioSource, RecognizerConfig, DialogServiceConnector)

Properties

agentConfig
audioSource
connectionEvents
dynamicGrammar
recognitionMode
sendMessage
speechContext
telemetryData
telemetryDataEnabled

Methods

connect()
disconnect()
dispose(string)
isDisposed()
recognize(RecognitionMode, (e: SpeechRecognitionResult) => void, (e: string) => void)
stopRecognizing()

Constructor Details

DialogServiceAdapter(IAuthentication, IConnectionFactory, IAudioSource, RecognizerConfig, DialogServiceConnector)

new DialogServiceAdapter(authentication: IAuthentication, connectionFactory: IConnectionFactory, audioSource: IAudioSource, recognizerConfig: RecognizerConfig, dialogServiceConnector: DialogServiceConnector)

Parameters

authentication
IAuthentication
connectionFactory
IConnectionFactory
audioSource
IAudioSource
recognizerConfig
RecognizerConfig
dialogServiceConnector
DialogServiceConnector

Property Details

agentConfig

agentConfig: AgentConfig

Property Value

audioSource

audioSource: IAudioSource

Property Value

connectionEvents

connectionEvents: EventSource<ConnectionEvent>

Property Value

dynamicGrammar

dynamicGrammar: DynamicGrammarBuilder

Property Value

recognitionMode

recognitionMode: RecognitionMode

Property Value

sendMessage

sendMessage: (message: string) => void

Property Value

(message: string) => void

speechContext

speechContext: SpeechContext

Property Value

telemetryData

static telemetryData: (json: string) => void

Property Value

(json: string) => void

telemetryDataEnabled

static telemetryDataEnabled: boolean

Property Value

boolean

Method Details

connect()

function connect()

disconnect()

function disconnect()

dispose(string)

function dispose(reason?: string)

Parameters

reason
string

isDisposed()

function isDisposed()

Returns

boolean

recognize(RecognitionMode, (e: SpeechRecognitionResult) => void, (e: string) => void)

function recognize(recoMode: RecognitionMode, successCallback: (e: SpeechRecognitionResult) => void, errorCallBack: (e: string) => void)

Parameters

recoMode
RecognitionMode
successCallback
(e: SpeechRecognitionResult) => void
errorCallBack
(e: string) => void

Returns

Promise<boolean>

stopRecognizing()

function stopRecognizing()