import { ConnectionEvent, EventSource, IAudioDestination, IConnection, IDisposable, ServiceEvent } from "../common/Exports"; import { AudioOutputFormatImpl } from "../sdk/Audio/AudioOutputFormat"; import { CancellationErrorCode, CancellationReason, SpeechSynthesisResult, SpeechSynthesizer } from "../sdk/Exports"; import { AgentConfig, ISynthesisConnectionFactory, SynthesisContext, SynthesisTurn, SynthesizerConfig } from "./Exports"; import { IAuthentication } from "./IAuthentication"; import { SpeechConnectionMessage } from "./SpeechConnectionMessage.Internal"; export declare class SynthesisAdapterBase implements IDisposable { protected privSynthesisTurn: SynthesisTurn; protected privConnectionId: string; protected privSynthesizerConfig: SynthesizerConfig; protected privSpeechSynthesizer: SpeechSynthesizer; protected privSuccessCallback: (e: SpeechSynthesisResult) => void; protected privErrorCallback: (e: string) => void; get synthesisContext(): SynthesisContext; get agentConfig(): AgentConfig; get connectionEvents(): EventSource; get serviceEvents(): EventSource; protected speakOverride: (ssml: string, requestId: string, sc: (e: SpeechSynthesisResult) => void, ec: (e: string) => void) => any; static telemetryData: (json: string) => void; static telemetryDataEnabled: boolean; set activityTemplate(messagePayload: string); get activityTemplate(): string; protected receiveMessageOverride: () => any; protected connectImplOverride: (isUnAuthorized: boolean) => any; protected configConnectionOverride: (connection: IConnection) => any; set audioOutputFormat(format: AudioOutputFormatImpl); private privAuthentication; private privConnectionFactory; private privConnectionConfigurationPromise; private privConnectionPromise; private privAuthFetchEventId; private privIsDisposed; private privConnectionEvents; private privServiceEvents; private privSynthesisContext; private privAgentConfig; private privServiceHasSentMessage; private privActivityTemplate; private privAudioOutputFormat; private privSessionAudioDestination; constructor(authentication: IAuthentication, connectionFactory: ISynthesisConnectionFactory, synthesizerConfig: SynthesizerConfig, speechSynthesizer: SpeechSynthesizer, audioDestination: IAudioDestination); static addHeader(audio: ArrayBuffer, format: AudioOutputFormatImpl): ArrayBuffer; isDisposed(): boolean; dispose(reason?: string): Promise; connect(): Promise; sendNetworkMessage(path: string, payload: string | ArrayBuffer): Promise; Speak(text: string, isSSML: boolean, requestId: string, successCallback: (e: SpeechSynthesisResult) => void, errorCallBack: (e: string) => void, audioDestination: IAudioDestination): Promise; protected cancelSynthesis(requestId: string, cancellationReason: CancellationReason, errorCode: CancellationErrorCode, error: string): void; protected cancelSynthesisLocal(cancellationReason: CancellationReason, errorCode: CancellationErrorCode, error: string): void; protected processTypeSpecificMessages(connectionMessage: SpeechConnectionMessage, successCallback?: (e: SpeechSynthesisResult) => void, errorCallBack?: (e: string) => void): boolean; protected receiveMessage(): Promise; protected sendSynthesisContext: (connection: IConnection) => Promise; protected connectImpl(isUnAuthorized?: boolean): Promise; protected sendSpeechServiceConfig: (connection: IConnection, SpeechServiceConfigJson: string) => Promise; protected sendSsmlMessage: (connection: IConnection, ssml: string, requestId: string) => Promise; private fetchConnection; private configureConnection; }