Description
React Speech Highlight is a library for adding text to speech with live highlighting of the words and sentences being spoken. It works with audio files you supply, a text-to-speech API, or the browser's Web Speech Synthesis API. The highlight is updated without React re-rendering the page, which the site says keeps it fast. It can generate visemes for spoken TTS and can use an LLM to get terms or equations pronounced correctly. It supports server-side rendering with Next.js, so the article text is present in the page source. Double highlighting is possible with the spokenHL.word API, for example when a page needs two highlight levels. For projects that use only vanilla JavaScript there is a separate Vanilla Speech Highlight package. The library is written in TypeScript, tested with Jest, linted with ESLint and documented with JSDoc. This site is the demo and documentation for version 6.0.0, and the source is on GitHub with notes on problems and limitations.…
Highlights
- Highlights words and sentences as they are spoken
- Works with your own audio files, a TTS API or Web Speech Synthesis
- Highlight updates without React re-rendering for speed
- Server-side rendering support with Next.js
- Written in TypeScript with Jest tests and JSDoc documentation
Ratings & Reviews
No ratings yet
Be the first to rate React Speech Highlight Demo.
People also visit
React Speech Highlight Demo FAQ
What is React Speech Highlight?
It is a React library for text to speech with word and sentence highlighting, for web apps that read content aloud.
Which speech sources does it support?
Audio files you provide, a text-to-speech API, and the browser's Web Speech Synthesis API.
Is there a version for projects without React?
Yes. Vanilla Speech Highlight is the package for projects that use only vanilla JavaScript.
Does it work with server-side rendering?
The demo runs on Next.js, which the site notes supports server-side rendering, so the article text appears in the page source for search engines.
Where is the documentation?
The site links to a detail and documentation page for version 6.0.0, and the GitHub repository includes notes on problems and limitations.
What are the best React Speech Highlight Demo alternatives?
Popular alternatives to React Speech Highlight Demo include StreamingKokoroJS, Kokoro Web and Sayna. See all React Speech Highlight Demo alternatives




