voce
Free runs on your computer · macOS and Linux

Markdown and code, read aloud.

Screen readers spell code out symbol by symbol. voce (said VOH-chay) reads it the way the person next to you would say it, with each language's real operator names. It shows your Markdown in the terminal, lights up each word as it is spoken, and keeps your place.

'1' === 1→the string 1 is identical to 1
user?.name ?? 'guest'→user optional chaining name nullish coalescing guest
def __init__(self, **kwargs)→def dunder init self, double star keyword args
$uv tool install --python 3.13 voce
🔊 Hear it read View on GitHub Make a course to listen to

MIT licensed · no account, no API key, nothing sent anywhere

Recorded from voce: Kokoro, the open voice it runs on your computer. The code is from karpathy/micrograd (MIT).

Code, read aloud

Code, read the way a pairing partner says it.

Every reader that speaks code gets it wrong in one of two ways. Screen readers spell out the symbols: "dollar, totals, left bracket, dollar, channel". Text-to-speech apps read code as prose, and Str::slug comes out as "stress log". voce says what the person next to you would say, one line at a time, and the line lights up as it is read.

Thirteen languages, each in its own manual's words. Pick yours.

On the lineWhat you hear
while chunk := f.read(8192):"while chunk assignment expression f dot read 8192"
def __init__(self, **kwargs) -> None:"def dunder init self, double star keyword args returns None"
value: str | None = None"value colon string or None equals None"
total //= 2"total floor divided equals 2"

Operators are named as the Python reference names them.

Missing yours? A language is one small file of data and a few tests, so it is a good first pull request. Add one.

Real names, so you learn them

Operators are called what their own manual calls them: PHP's "identical", JavaScript's "strictly equal", Ruby's "spaceship", Kotlin's "elvis", Go's "bit clear", Rust's "turbofish", C#'s "null conditional". After a few sessions you say them without thinking, which is what a pair-programming interview or a code review asks of you.

Names as words

array_values is "array values", strlen is "string length", usort is "U sort", isset is "is set". A variable's dollar sign, the brackets and the semicolon are silent. A string is read by its contents, and a trailing comment as prose.

Checked against real code

The rules started with PHP, read right through laravel/framework and checked by ear against the real voice. Every other language was then read through well-known projects in that language (Django, express, Guava, ripgrep, Rails and others) and its operator names checked against its manual by a reviewer who had not seen the rules. A pipe in shell is "pipe", Python's -> is "returns", and each language has tests with the exact words. Hear it on a reservation sync in Laravel, or prefer the prose alone with --skip-code.

Courses by your coding agent

Ask for a course. Listen to it anywhere.

Hearing code read the way a pairing partner says it is how you learn to say it yourself, which is what a live-coding interview, a pairing session or a code review asks of you. Give one of these to Claude Code, Codex or Cursor in your voce library, and it writes the course as Markdown files and a playlist. Push, and it is on your phone.

Pass the live-coding interview

Write me a voce course that gets me ready for a pair-programming interview in Python. Take the twelve problems interviewers ask most, and for each one walk through a solution the way I should talk through it out loud: what I'm about to write, then each line, then how I'd test it. Ten minutes a part.

Talk through a new codebase

Turn this repository into a voce playlist for my first week on the team. Pick the files a new engineer has to understand, and explain each the way a senior engineer would on a call: what it's for, the important lines, and what would break if you changed them.

Python for AI work

Write a voce course on the Python I need to build with LLM APIs: type hints, dataclasses, async and await, calling an API, retrying and handling errors, and testing it. Real code in every part, kept short enough to follow by ear.

Review code an agent wrote

Write a voce course on reviewing code that a coding agent wrote: the mistakes agents tend to make, how to spot each one in a diff, and what to say about it in a review. Use small, real examples in TypeScript and Python.

A new language, from one you know

I know JavaScript well. Write a voce course that teaches me Go by comparing the two: each part takes one idea, shows it in both, and says where Go differs. Eight parts, about eight minutes each.

SQL for the screening round

Write a voce course of the fifteen SQL questions most asked in screening interviews: joins, grouping, window functions and finding duplicates. For each, say how I'd reason about it before writing the query.

No library yet? Open the web app, sign in with GitHub and make one in two steps. It comes with notes that tell your agent how to write for the ear.

How it compares

Other readers speak code. None of them say it.

Text-to-speech is not new, and nor is having an agent's reply read out. What is new is hearing code as a person says it, while the page follows along. Here is one line, $totals[$channel] ??= 0;, read four ways.

ReaderWhat you hearOn screenVoice
Screen readersVoiceOver, NVDA, Emacspeak "dollar totals left bracket dollar channel right bracket question question equals zero semicolon", or skips the symbols Your editor, as it isLocal
Read-aloud appsSpeechify, a browser's read aloud Code read as if it were prose: Str::slug becomes "stress log" Their own app or pageOften the cloud, often paid
Agent read-aloud toolshooks and plugins for coding agents Usually "code omitted", or the code read as text Nothing: audio onlyLocal or the cloud
voce "totals channel null coalescing assignment zero" The Markdown, styled, with each word lit as it is spokenKokoro, on your computer, free

voce is not a screen reader and doesn't try to be one. It is for listening to things worth taking in: an agent's explanation, a pull request walkthrough, study notes on a language.

What it does

Reads what a person would read.

Markdown is written for the eye. voce shows it the way it should look and reads only the prose, so you can listen with your eyes closed or follow every word.

Follows along

The sentence being read sits on a pale band, the word being spoken on a darker one, timed from the audio itself. Look away or close your eyes, and when you look back the highlight shows you where it has got to.

Reads code like a pairing partner

Highlighted in every language Pygments knows, and read line by line with the real names: "is identical to", "double arrow", "null coalescing", "spaceship".

Tables that line up

Columns are aligned on screen and read one row at a time, cell by cell.

Keeps your place

Quit at any point and carry on from the same sentence, even after the file has been edited.

Free to listen again

Every sentence is fetched once and cached, so going back or listening again costs nothing and works offline.

Take it with you

--export stitches files into one MP3, with the same voice and pauses, for a walk or a drive.

Playlists and quizzes

Point it at a folder's README and listen through in order. Quizzes pause for your answer.

Click to jump

Click any sentence to hear it, or use the arrows to move by sentence, paragraph or section.

Gapless and in time

A tiny native player keeps sentences flowing, pauses mid-word and changes speed without changing pitch.

Made for Claude Code

Listen to the reply while you think about it.

Long replies are easier to take in by ear, and easier on your eyes than a wall of text. voce reads Claude's latest reply straight from the session, with no copying and pasting.

  1. Ask Claude

    Work in Claude Code as usual, in one terminal.

  2. Run voce -r

    In a second terminal, in the same folder, when the reply lands.

  3. Listen

    You hear the final message, the same text /copy takes, without the tool calls or thinking.

~/project ❯ claude
> Why does the cache miss?
⏺ The cache key ignores the query string, so…
~/project ❯ voce -r
The cache key ignores the query string, so…
▶ reading · 2/8 · 1.1× · Heart

Prefer copying? /copy then voce -c works too.

Written for the eye, read for the ear

What you see, and what you hear.

The voice never hears markup. Symbols and abbreviations are read as words, and things meant for the eye stay on the screen.

On screen

  • Bold, italic, code and links
  • A fenced python code block
  • | Request | Before | After |
  • e.g. a → b, ~3 × faster
  • <details> hints and "Next:" links

Spoken

  • "Bold, italic, code and links"
  • "array values", "identical", "arrow"
  • "Request, Before, After", then each row
  • "for example, a to b, about 3 times faster"
  • Shown, not read

Voices

Good out of the box, and free for good.

Every voice runs on your computer. There is no account, no API key and no bill, and what you read is never sent anywhere.

built in

Kokoro

A small open voice model that sounds close to a person reading. Eight voices to cycle through with v, American and British, and 54 in all. It downloads once (120 MB) and then works offline.

macOS

Mac voices

The backup, and there if you prefer them. Pick any voice installed on your Mac with --voice. Voices guide

Keys

Everything is one key away.

Your hands stay where they are. The mouse works too: click a sentence to jump, click code to copy it, scroll to look around.

spacepause or carry on
←→sentence
↑↓paragraph
[]section
+-speed, 0.8× to 2×
npnext or previous file
vnext voice
mplaylist menu
rhear it again
ccopy the sentence
qquit, keeping your place

Install

Ready in a minute.

You need macOS or Linux, and Python 3.10 to 3.14 for the Kokoro voice. On a Mac, the Xcode command line tools give you the gapless player. On Linux, mpv plays the audio. ffmpeg is only needed for MP3 export.

# with uv
❯ uv tool install --python 3.13 voce
# or with pipx
❯ pipx install --python python3.13 voce
❯ voce README.md # any Markdown file
❯ voce -r # Claude Code's latest reply
❯ voce -c # the clipboard
❯ voce notes.md --export notes.mp3

Full documentation is in the README.

Privacy

Your notes stay yours.

No telemetry

voce makes no network calls of its own. There is nothing to opt out of.

Nothing leaves your computer

The voices run locally, so what you read is never sent to a speech service.

Plain files

Your place and settings live in one JSON file, and the audio cache is safe to delete at any time.

The web app works without an account, and keeps what you read in your browser. What goes where lists everything voce keeps and sends, and to whom.