@voice-ping/cognitive-services-speech
Version:
VoicePing Cognitive Services Speech SDK for JavaScript forked from Microsoft
23 lines (22 loc) • 899 B
TypeScript
import { Promise } from "../../common/Exports";
/**
* Placeholder class for the Conversation Request Session. Based off RequestSession.
* TODO: define what telemetry is required.
*/
export declare class ConversationRequestSession {
private privIsDisposed;
private privDetachables;
private privRequestId;
private privRequestCompletionDeferral;
private privSessionId;
constructor(sessionId: string);
get sessionId(): string;
get requestId(): string;
get completionPromise(): Promise<boolean>;
onPreConnectionStart: (authFetchEventId: string, connectionId: string) => void;
onAuthCompleted: (isError: boolean, error?: string) => void;
onConnectionEstablishCompleted: (statusCode: number, reason?: string) => void;
onServiceTurnEndResponse: (continuousRecognition: boolean) => void;
dispose: (error?: string) => void;
private onComplete;
}