import TimedEvent from './timedEvent'; /** * TimedSpeech uses the Web Speech API (SpeechSynthesis) to speak text and * map speech progress to TimedEvent progress. Marks in the utterance are * used to approximate elapsed duration and progress notifications. * * constructor(text, gain, speed) * - text: string to speak (basic splitting into marks is applied) * - gain: volume (0.0 - 1.0) * - speed: speaking rate */ export default class TimedSpeech extends TimedEvent { markCount: number; currentMark: number; gain: number; utterance: SpeechSynthesisUtterance; constructor(text?: string, gain?: number, speed?: number); start(): void; pause(): void; resume(): void; cancel(): void; setVolume(gain?: number): void; protected tick(): void; } //# sourceMappingURL=timedSpeech.d.ts.map