Read-aloud with word highlighting

audio-reader-highlight

audio-reader-highlight artwork: an open book with sound waves and a play button above it.
npm downloads, v2 launch day
202
Daily average the week before
0–1

What we built

  • A reusable package that reads text aloud and highlights each word in time with the audio

Get it

Free and MIT licensed. Install it from npm, wrap the text you want read, and add the player. No dependencies; React is optional, and React Native and Expo apps use the same package.

1 · Install

npm install audio-reader-highlight

2 · Use it

import { Readable, ListenButton, PlayerDock } from 'audio-reader-highlight/react'
import 'audio-reader-highlight/styles.css'

export default function Post() {
  return (
    <>
      <Readable id="post" label="My post">
        <h1>Title</h1>
        <p>Body text…</p>
      </Readable>
      <ListenButton region="post">Listen</ListenButton>
      <PlayerDock defaultRegion="post" />
    </>
  )
}

Support it

Free, with no paid tier. If it helps you or your readers, you can give back, entirely by choice.

Status

Published on npm, MIT licensed.