Skip to main content

Introduction

react-text-to-speech is an easy-to-use React.js library that leverages the Web Speech API to convert text to speech.

Features

Installation

Install react-text-to-speech using:

npm install react-text-to-speech --save

Usage

react-text-to-speech offers two main ways to integrate text-to-speech functionality into your React.js applications.

  • useSpeech hook - for programmatic control, flexible speech management, and advanced usage.
  • <Speech> component - for embedding speech directly in JSX with minimal setup.