Skip to content

zengao1997/tts-react

 
 

Repository files navigation

CI codecov NPM version

TextToSpeech React component

Repository for tts-react, a React component and hook that uses the SpeechSynthesis and SpeechSynthesisUtterance API's to convert text to speech. You can fallback to the HTMLAudioElement API by providing a fetchAudioData prop to the hook or component.

Important

Requires a peer dependency of React and ReactDOM >= 19.
Use tts-react@3 if your project is on React 18.

Install

npm i react react-dom tts-react

For projects using React 18:

npm i react@18 react-dom@18 tts-react@3

Table of Contents

Demo (Storybook)

morganney.github.io/tts-react

Progress

  • Helped fix a SpeechSynthesisUtterance default volume Chrome bug.

About

Convert text to speech using React.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 98.4%
  • JavaScript 1.5%
  • HTML 0.1%