voice-tts
Version: 
Universal Text-to-Speech voice management library
15 lines • 410 B
TypeScript
export declare class Voice {
    private _speechSynthesisVoices;
    private targetVoice?;
    get speechSynthesisVoices(): SpeechSynthesisVoice[];
    init(): Promise<void>;
    change(name: string): void;
    speak(text: string): void;
    pause(): void;
    resume(): void;
    stop(): void;
    isSpeaking(): boolean;
    isPaused(): boolean;
    isPending(): boolean;
}
//# sourceMappingURL=Voice.d.ts.map