RequestSession class
Constructors
Request |
Properties
Methods
Constructor Details
RequestSession(string)
Property Details
audioNodeId
audioNodeId: string
Property Value
string
bytesSent
bytesSent: number
Property Value
number
completionPromise
currentTurnAudioOffset
currentTurnAudioOffset: number
Property Value
number
dispose
dispose: (error?: string) => void
Property Value
(error?: string) => void
getTelemetry
getTelemetry: () => string
Property Value
() => string
isRecognizing
isRecognizing: boolean
Property Value
boolean
isSpeechEnded
isSpeechEnded: boolean
Property Value
boolean
onAudioSourceAttachCompleted
onAudioSourceAttachCompleted: (audioNode: ReplayableAudioNode, isError: boolean, error?: string) => void
Property Value
(audioNode: ReplayableAudioNode, isError: boolean, error?: string) => void
onAuthCompleted
onAuthCompleted: (isError: boolean, error?: string) => void
Property Value
(isError: boolean, error?: string) => void
onConnectionEstablishCompleted
onConnectionEstablishCompleted: (statusCode: number, reason?: string) => void
Property Value
(statusCode: number, reason?: string) => void
onPreConnectionStart
onPreConnectionStart: (authFetchEventId: string, connectionId: string) => void
Property Value
(authFetchEventId: string, connectionId: string) => void
onServiceTurnEndResponse
onServiceTurnEndResponse: (continuousRecognition: boolean) => void
Property Value
(continuousRecognition: boolean) => void
recogNumber
recogNumber: number
Property Value
number
requestId
requestId: string
Property Value
string
sessionId
sessionId: string
Property Value
string
Method Details
listenForServiceTelemetry(IEventSource<PlatformEvent>)
function listenForServiceTelemetry(eventSource: IEventSource<PlatformEvent>)
Parameters
- eventSource
- IEventSource<PlatformEvent>
onAudioSent(number)
onHypothesis(number)
onPhraseRecognized(number)
onServiceRecognized(number)
onSpeechEnded()
function onSpeechEnded()
onStopRecognizing()
function onStopRecognizing()
startNewRecognition()
function startNewRecognition()