1.0.5 • Published 1 year ago
react-window-speech-synthesis v1.0.5
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);
}, []);