audiobook

audiobook is a command for coding agents from coltonbearden/carrel. It costs 26 tokens per session (760 once invoked), scanned B, original, MIT.

A command for turning text, Markdown, or PDF documents into spoken audio files such as MP3, OGG, or WAV. It can use installed text-to-speech engines and optionally split the result by chapters.

In plain words
What is it for?
Creating audiobooks from documents, choosing a voice or speaking speed, producing different audio formats, and making separate files for chapters.
Why use it?
It removes the manual work of recording or converting documents into audio and can make long documents easier to listen to.

Command

Part of the carrel-convert plugin — 6 commands, 1 agent shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/coltonbearden/carrel/audiobook
Clone the repo
git clone --depth 1 https://github.com/coltonbearden/carrel

Or install carrel-convert, the plugin that ships this one along with the rest of its 6 commands, 1 agent.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for audiobook

README.md
[![agentmods](https://agentmods.dev/badge/commands/coltonbearden/carrel/audiobook.svg)](https://agentmods.dev/commands/coltonbearden/carrel/audiobook)
Your own site
<a href="https://agentmods.dev/commands/coltonbearden/carrel/audiobook"><img src="https://agentmods.dev/badge/commands/coltonbearden/carrel/audiobook.svg" alt="Measured on agentmods" height="20"></a>
Per session 26 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 760 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00026 $0.00760
Opus 5 $0.00013 $0.00380
Sonnet 5 $0.00005 $0.00152
Haiku 4.5 $0.00003 $0.00076

Measured today against content hash 97a31e18d751, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade B, and why

audiobook scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

Interpret the JSON result `{src, outputs, engine, duration_s, chars}`: tell the user which engine spoke, the output file(s), and the duration. Exit code 3 means a TTS engine or ffmpeg is missing — relay the install hint
plugins/carrel-convert/commands/audiobook.md · 50 lines

What it actually says

Create an audiobook from: $ARGUMENTS

Run the carrel CLI via Bash. Map the user's request onto the real flags in the --help block below (regenerated from the CLI by scripts/sync_plugins.py; if the installed carrel audiobook --help differs, trust the installed version — never invent flags):

Usage: carrel audiobook [OPTIONS] SRC

  Narrate SRC (txt, md, pdf) into an audiobook.

  Markdown is stripped for speech: headings become spoken chapter announcements, code blocks become
  "[code omitted]", links read their text. mp3/ogg need ffmpeg; --format wav works with espeak-ng
  alone. Existing outputs are never overwritten without --force. With --json, prints {src, outputs,
  engine, duration_s, chars}.

Options:
  -o, --output FILE               Output audio file (default: SRC with audio extension).
  --voice TEXT                    Voice: espeak voice name, piper model path, or edge-tts voice.
  --rate INTEGER RANGE            Speech rate in words per minute.  [default: 170; 80<=x<=450]
  --engine [auto|espeak|piper|edge-tts]
                                  TTS engine; auto prefers piper > edge-tts > espeak-ng.  [default:
                                  auto]
  --split-chapters                One file per chapter (markdown H1/H2, or the PDF outline).
  --force                         Overwrite existing output files.
  --format [mp3|ogg|wav]          Audio format (default: from -o extension, else mp3).
  --json                          Machine-readable JSON output.
  --help                          Show this message and exit.

Note: --json is a global flag and may come before the subcommand.

  • SRC: txt/md/pdf — text is extracted automatically; markdown headings become spoken chapter markers and code blocks are skipped.
  • --engine (default auto): auto prefers piper > edge-tts > espeak-ng, whichever is installed.
  • --split-chapters: one output file per H1/H2 chapter (md, or pdf with an outline).
  • --format (default mp3): mp3/ogg need ffmpeg; wav works with espeak-ng alone.
  • --rate: words per minute (80–450); --voice: engine-specific voice name or piper model path.
  • --force: only when the user explicitly wants an existing output overwritten.

Interpret the JSON result {src, outputs, engine, duration_s, chars}: tell the user which engine spoke, the output file(s), and the duration. Exit code 3 means a TTS engine or ffmpeg is missing — relay the install hint from stderr (espeak-ng is the minimal engine: sudo apt install espeak-ng; suggest --format wav when ffmpeg is absent).

Requires the carrel CLI on PATH. If carrel is not found, tell the user to install it with uv tool install carrel (see the repo's INSTALL notes), or run it as uv run carrel ... from the carrel repo root.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today Changed · +24 lines 97a31e18d751
  2. yesterday Changed 1305ca7d5f86
  3. 4d ago First seen · 26 lines · 26 tokens per session scan B 41ed48c499af

Subscribe to this mod's changes

audiobook is a command published in the GitHub repository coltonbearden/carrel (1 stars, last pushed today), licensed MIT. It adds 26 tokens to every session and 760 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.