RxJS wrapper for Text-to-Speech
npm i rxjs-tts
Try it online: https://stackblitz.com/edit/rxjs-tts?file=index.ts
About
This is a RxJS wrapper around browser native SpeechSynthesis.
It provides handy interface for chaining and aborting TTS.
Usage
; ;
Chained
; ;
Advanced usage
;;; const a: string = "Hello, mom!"; const b: SpeechSynthesisUtteranceConfig = text: "How are you?" lang: "en-UK" pitch: 1 rate: 1 volume: 1; const c = "I miss you";crate = 1;clang = "en-US";cpitch = 1;crate = 1;cvolume = 1; ;