react-window-speech-synthesis
v1.0.5
Published
react-window-speech-synthesis
Downloads
15
Readme
react-window-speech-synthesis
React speech synthesis hook allows you Web Speech API.
Installation
npm install react-window-speech-synthesis
yarn add react-window-speech-synthesis
Usage
import useReactSpeechSynthesis from "react-window-speech-synthesis";
const [voices, speak, speechStatus] = useReactSpeechSynthesis();
useEffect(() => {
speak(text, currentVoice);
}, []);