Skip to main content

Joel

"Do you understand?" Your spoken English, every grammar mistake, the exact second you made it.

Joel is a command-line tool for people who speak English as a second language. You give it a recording of yourself talking. It tells you which sentences had a grammar mistake, when in the recording you said them, and what you should have said.

What a report looks like

$ joel check talk.m4a

00:12.0–00:15.1
  said:    There is many people in the room.
  correct: There are many people in the room.
           00:12.4  is → are  R:VERB:SVA   grammar

00:40.6–00:42.0
  said:    I make a party last week.
  better:  I threw a party last week.
           00:41.0  make → threw  naturalness

Cost: $0.003 for 2 model calls (1563 input and 368 output tokens) with openai-codex:gpt-6.1-terra.

Each entry is one sentence, headed by where to find it in the recording. Under what you said comes the corrected sentence, then one line per change, starting with the second you said it. R:VERB:SVA is the kind of mistake, here a verb that doesn't agree with its subject. A naturalness change is one a native speaker would make even though the sentence is already grammatical. The said: line leaves out the hesitations Joel set aside. The last line is what the language model calls would cost at API prices. With the default model your ChatGPT plan covers them, so nothing is billed per token.

Joel would rather miss a mistake than invent one. A report that flags things you said correctly teaches you to ignore it, so anything the transcription was unsure about stays hidden unless you ask for it with --show-uncertain. The report still tells you how many it hid.

How it works

Speech-to-text turns the recording into words, each with a time and a confidence score. A language model then marks the hesitations ("uh", repeated words, false starts) so they can be set aside, and writes a corrected version of each sentence. The model never lists your mistakes, because a model asked for a list will make some up. The list comes from comparing what you said with the corrected sentence, using ERRANT, a toolkit built for exactly that diff. Last, any mistake that sits on a word the speech-to-text model was unsure of is dropped, since it is more likely a transcription error than yours.

You pick the speech-to-text model with --transcriber:

Name Model Where it runs Times in the report What it needs
parakeet (default) Parakeet Ultra Your machine Yes A 740 MB model file, downloaded once
elevenlabs ElevenLabs Scribe v3 ElevenLabs servers Yes ELEVENLABS_API_KEY
openai OpenAI gpt-transcribe OpenAI servers No OPENAI_API_KEY

gpt-transcribe returns no timestamps, so its report lists the mistakes without saying where they are.

The design document has every step in detail.

Dependencies

Three things you install yourself:

Tool What Joel uses it for
uv Installs Joel and its Python packages
Python 3.13 The language Joel is written in. If you don't have it, uv python install 3.13 gets it
ffmpeg Reads your audio file, whatever the format, and converts it for the local model

ffmpeg has to be on your PATH. Most package managers have it:

# Debian or Ubuntu
sudo apt install ffmpeg

# Arch Linux
sudo pacman -S ffmpeg

# macOS with Homebrew
brew install ffmpeg

Joel is developed on Linux (x86-64) with ffmpeg 6.0.1. It has not been tried on macOS or Windows.

The language model runs on your ChatGPT plan by default, through the login of OpenAI's Codex CLI. Install it and run codex login once; Joel reads that login and never changes it. This route isn't one OpenAI supports for other apps, so it may stop working, and it can use up your plan's limits (ADR-0011). Without a ChatGPT plan, pass --model openai:gpt-6.1-terra and set OPENAI_API_KEY.

Other choices need API keys, set as environment variables:

Variable Needed for
OPENAI_API_KEY An openai: model in --model, or --transcriber openai
ANTHROPIC_API_KEY An anthropic: model in --model
ELEVENLABS_API_KEY --transcriber elevenlabs

With the default transcriber your audio stays on your machine, but the text of what you said is sent to the language model provider to be corrected. The two cloud transcribers also upload the audio file.

uv installs Joel's Python packages when you install Joel. They are listed in the design under "Dependencies"; the main ones are transcribe-cpp (runs Parakeet), errant and spacy (the diff), and pydantic-ai-slim (the language model calls). Pydantic AI comes with every provider of text models it supports, so --model can name a model from any of them. TypeSafe is left out because its models answer typed questions and can't write corrected sentences.

ERRANT also needs spaCy's English model, en_core_web_sm, which isn't on PyPI. The first joel check downloads it (13 MB) from spaCy's GitHub release, checks it against a pinned hash, and keeps it in ~/.cache/joel ($XDG_CACHE_HOME/joel when that's set). ADR-0012 explains why.

Installation

Joel is on PyPI. Install it as a uv tool, which gives Joel its own environment and puts joel on your PATH:

uv tool install joel
joel --help

The second command lists Joel's commands. The SDKs for the two cloud transcribers are optional extras: uv tool install 'joel[elevenlabs,openai]' installs both, or name only the one you need. uv tool upgrade joel updates Joel later.

Two models download the first time Joel needs them. The local transcriber downloads Parakeet Ultra (740 MB) into the standard Hugging Face cache, ~/.cache/huggingface/hub, and reuses it from there. If another app already put the same file in that cache, Joel uses it and downloads nothing. joel check also downloads spaCy's en_core_web_sm (13 MB) into ~/.cache/joel on its first run, as Dependencies describes.

Usage

joel check is the command you'll use most:

# Report the mistakes in a recording
joel check talk.m4a

# Use a cloud transcriber and keep the full result as JSON
joel check talk.m4a --transcriber elevenlabs --json > talk.json

# Also show the mistakes Joel wasn't sure enough to report
joel check talk.m4a --show-uncertain
Flag Default What it does
--transcriber parakeet Picks the speech-to-text model: parakeet, elevenlabs, or openai
--model openai-codex:gpt-6.1-terra Picks the language model, as a Pydantic AI model string
--min-confidence 0.67 How sure the transcription must be about a word before a mistake on it is reported
--show-uncertain off Shows the mistakes that fell below that bar, marked as uncertain
--block-sentences 7 How many sentences go to the language model in each call. Fewer means more calls and a higher cost
--json off Prints everything as JSON: the transcript, the corrections, every mistake with the reason it was kept or held back, and the tokens and cost of the run. The terminal report can be rebuilt from it

There is a second command, for finding out which transcriber to trust:

joel bench recordings/ --transcriber parakeet --transcriber elevenlabs --transcriber openai

A speech-to-text model can quietly fix your grammar while transcribing, turning "he go" into "he went", and then there is nothing left to report. joel bench measures how much each one does that. It takes a folder of recordings (01.wav, 02.wav, ...) with a matching .txt for each, holding exactly what you said, mistakes included. Put each mistake in square brackets:

Yesterday he [go] to school, uh, and she [don't] like it.

For each transcriber you get a table with the word error rate and how many of your bracketed mistakes came through untouched, then a line for every file where the transcript differs from what you said, like 01 yesterday he [go → went] to school. A transcriber that can't run here, such as a cloud one without its extra or its API key, shows an error in place of its table, and the others still run.

Before you send a long recording through a paid model, you can ask what it would cost:

$ joel estimate talk.m4a
talk.m4a: 10:00 of audio, about 1500 words in 125 sentences
openai-codex:gpt-6.1-terra: about $0.059 for 36 calls (28686 input and 6024 output tokens)
Assumes 150 words per minute, 12 words per sentence and 7 sentences per call, with no prompt caching; a retried call costs extra.

The estimate only looks at how long the recording is. Joel sends the sentences to the language model in blocks of 7, and each block costs two calls, one to set the hesitations aside and one to correct it. --block-sentences changes the block size here and in joel check. --model prices a different model, as long as genai-prices knows it.

Using Joel from another program

Run joel check <audio> --json and read standard output. The JSON is the whole result of the run: the transcript, the corrections, every mistake with the reason it was kept or held back, and the tokens and cost. On an error Joel prints the reason to standard error and exits with 1. The Python modules inside the package aren't a stable API and can change in any release, so don't import them.

Contributing

Joel is a personal tool built in the open. The tickets of stage 1 are closed, and open work lives in the issues. If you want to pick one up, leave a comment on it first.

To work on Joel, clone it and let uv set up the environment:

git clone https://github.com/MarcusXavierr/joel.git
cd joel
uv sync --all-extras
uv run joel --help

Then check that uv run python --version prints Python 3.13.x. The dev group installs en_core_web_sm as a package, so the tests never download it. A few rules keep the project consistent:

  • Use uv for everything (uv add, uv run, uv sync). Don't call pip or create a virtual environment by hand.
  • Write the test first and watch it fail before you write the code. The fast suite runs with uv run pytest, which skips tests marked slow (they load a model or need ffmpeg); uv run pytest -m slow runs those. No test calls a real language model or touches the network. uv run ruff check src tests and uv run mypy src tests must pass too.
  • Everything in the repo is in English: code, comments, docs, and commit messages.
  • Read the part of the design that covers the step you're changing. When the design and a decision record disagree, the decision record wins.
  • An accepted decision record is never edited. If a decision changes, write a new record that replaces the old one.

Regenerating the synthetic test recording, tests/fixtures/audio/acceptance.wav, needs espeak-ng, which nothing else uses. The exact command is in a comment in tests/test_parakeet.py. If you work with a coding agent, AGENTS.md has the same rules written for it.

License

MIT. See LICENSE.

Metadata

Release files for joel 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for joel 0.1.0
File Size Uploaded Provenance Actions
joel-0.1.0.tar.gz 339.0 kB Without provenance Details for joel-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for joel 0.1.0
File Interpreter ABI Platform Actions
joel-0.1.0-py3-none-any.whl Python 3 none any Details for joel-0.1.0-py3-none-any.whl

Total release size: 382.6 kB

Release files / joel-0.1.0.tar.gz

Download URL joel-0.1.0.tar.gz
Size 339.0 kB
Tags Source
SHA-256 checksum
How to use checksums
2ac4ca5b7e5d55670aecc94860f615551aa5f93c287cbf2ea5f492cd5914db1f
BLAKE2b-256 checksum
How to use checksums
a012a17a50ab16a3e8bc9a211f8539a4063dfe0954d18b673474f48bef37b153
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.17 {"installer":{"name":"uv","version":"0.9.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Fedora Linux","version":"39","id":"","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / joel-0.1.0-py3-none-any.whl

Download URL joel-0.1.0-py3-none-any.whl
Size 43.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
64395f7532c08c567701dc5e96df9808b44c73ef0d5dc0cc567abe508ae5dee0
BLAKE2b-256 checksum
How to use checksums
677738ad90647130a6cf84ec1b8dd8a98a63a134ec35876d4a6ee35d28a86c79
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.17 {"installer":{"name":"uv","version":"0.9.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Fedora Linux","version":"39","id":"","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for joel 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page