useSpeechSynthesis ​
sensors
test coverage
Last changed: 5 days ago
TIP
This hook uses SpeechSynthesis browser api to provide enhanced functionality. Make sure to check for compatibility with different browsers when using this api
Hook that provides speech synthesis functionality
typescript
import { useSpeechSynthesis } from '@siberiacancode/reactuse';
Usage ​
typescript
const { supported, playing, status, utterance, error, stop, toggle, speak, resume, pause } = useSpeechSynthesis();