- Notifications
You must be signed in to change notification settings - Fork9
Convert text to speech using React.
License
NotificationsYou must be signed in to change notification settings
morganney/tts-react
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Repository fortts-react
, a React component and hook that uses theSpeechSynthesis
andSpeechSynthesisUtterance
API's to convert text to speech. You can fallback to theHTMLAudioElement
API by providing afetchAudioData
prop to the hook or component.
Important
Requires a peer dependency of React and ReactDOM >= 19.
Usetts-react@3
if your project is on React 18.
npm i react react-dom tts-react
For projects using React 18:
npm i react@18 react-dom@18 tts-react@3
- Helped fix a
SpeechSynthesisUtterance
default volumeChrome bug.
About
Convert text to speech using React.
Topics
Resources
License
Stars
Watchers
Forks
Packages0
No packages published