import { Action, Speech } from '../SpeechModule'; export interface ICognitiveServicesSpeechSynthesisProperties { subscriptionKey?: string; gender?: SynthesisGender; voiceName?: string; onSpeakingStarted?: Action; onSpeakingFinished?: Action; onEarlySpeakingFinished?: Action; localAudioMap?: { [key: string]: string; }; phonemeReplacementMap?: Map; localAudioCacheLimit?: number; region?: string; fetchCallback?: (authFetchEventId: string) => Promise; fetchOnExpiryCallback?: (authFetchEventId: string) => Promise; } export declare enum SynthesisGender { Male = 0, Female = 1 } export declare class SpeechSynthesizer implements Speech.ISpeechSynthesizer { private static readonly PLAYER_TIMER_INTERVAL; private static readonly SILENCE_TRIM_TIME; private _requestQueue; private _localAudioCacheMap; private _isPlaying; private _localAudioPlayer; private _audioElement; private _helper; private _properties; private _onSpeakingStarted; private _onSpeakingFinished; private _onEarlySpeakingFinished; private _localAudioMap?; private _phonemeReplacementMap?; private _localAudioCacheLimit; private _timerId; constructor(properties: ICognitiveServicesSpeechSynthesisProperties); cacheString: (text: string) => void; speak: (text: string, lang: string, onSpeakingStarted?: Action, onSpeakingFinished?: Action, onEarlySpeakingFinished?: Action) => void; stopSpeaking(): void; stopAudio(): void; private playAudio; private replacePhonemes; private cacheSpeechData; private getSpeechData; private log; }