Read Along
I built Read Along to listen to writing while following the words. My Mac does the work of generating the speech. I can then download a finished reading on my iPhone or iPad and take it with me.
A native macOS reader
The Mac app is built in Swift and SwiftUI. Instead of calling a speech service, it generates the narration on the Mac itself, running a speech model on Apple silicon with Apple’s MLX framework. The model is about 1 GB and downloads the first time the app runs. The native apps are still in development and aren’t publicly released yet.
In the recording, the app generates audio for the opening of this page, then highlights the sentence and the word being read. Selecting a word plays from there, and the speed control steps through the available speeds. Earlier pieces stay in a searchable history in the sidebar, and the app can also open text and Markdown files and export the audio.
Timing was the harder problem on the Mac. ElevenLabs reports when each word is spoken, but the local model returns only audio. The app estimates the timings instead: it finds the pauses in the speech, matches them to the punctuation in the text, and divides the time between pauses among the words by their length in syllables. Because these timings are estimates, the app labels them that way rather than presenting them as measured.
Taking a reading with me
I wanted to prepare a few readings on my Mac in the evening and listen on the train the next morning. Generating the voice can take time, but listening to the finished recording doesn’t need the same hardware.
Completed readings go into a shared iCloud Drive folder. I choose which ones to download in the iPhone or iPad app. Each download keeps the audio, text and word timings together on the device, so playback no longer depends on the Mac or the shared folder.
The words remain part of the player. I can tap the sentence I want to hear, speed up a familiar passage, or pause and come back to it.
The reading is already on the phone. The Mac can be asleep while I listen.
A 32-second edited recording from the iPhone simulator, using a reading generated on my Mac. This clip is silent. Open the recording.
The companion keeps the same way of reading: follow the words, tap a passage to jump there, or change the listening speed. Audio continues when I leave the app, and reopening a reading restores my place. New narration is generated on the Mac; the companion carries the readings that are already ready.
Keeping downloads complete
iCloud can show a reading before all its files arrive. Read Along checks the completed download before adding it to the library, so an interrupted transfer doesn’t become a broken reading.
View source on GitHubTry it in the browser
Loading narration…
Read Along keeps a piece of writing and its narration together. As you listen, the words light up in time with the voice. You can follow the text, look away for a while, or pause to spend more time with a passage.
The text is also a way to move through the recording. Select any word to listen from there, or use the controls to change the playback speed. Instead of searching along a timeline for a sentence you remember, you can go straight to it on the page.
I built Read Along as a tool for listening to written material. This website uses the same approach for its project stories, so visitors can choose how they want to read them.
How it works
The narration on this page comes from ElevenLabs with a start and end time for each word. The reader highlights whichever word the audio has reached and uses the same timings to start playback from any word you select. Because the highlight follows the audio itself, the text stays in step when you change the speed or jump to another passage.
Read Along also has a command-line tool with its own browser player. I give it a script, and it requests the narration, checks the timings against the text, and saves the text, audio and timings together so they can’t drift apart. The player here is adapted from that one, and it also narrates the Post Grad Project story.
Review cards
In the standalone browser reader, I can turn the passage I’m listening to into a question and answer. I edit both before saving. The card keeps the original passage and its place in the recording, so I can return to the source when I revisit it.
The cards stay on my computer and remain available when I reopen the reader. They’re stored separately from the text, audio and timings, so saving a card doesn’t change the narration.
I can export the cards to a study app I’m building. It shows the question before the answer and schedules the next review after I rate how well I remembered it. Each card keeps its original passage and a link back to the recording, so I can check the source while studying.