tts-react icon indicating copy to clipboard operation
tts-react copied to clipboard

Convert text to speech using React.

tts-react

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.

Install

npm i react react-dom tts-react

Table of Contents

  • tts-react
  • storybook
  • examples

Demo (Storybook)

morganney.github.io/tts-react

Progress

  • Helped fix a SpeechSynthesisUtterance default volume Chrome bug.