← All guides & prompts
Starter pack 01

Build your own audiobook generator

A goal-driven build prompt for your coding agent, plus the mistakes and tests that turn a voice demo into a tool that can read a whole book.

Windows, macOS or Linux · Version 1.0 · 7 November 2026 · 9-page PDF

Download PDF
  1. INPUTPDF · EPUB · TXT
  2. ON YOUR COMPUTERKokoro text-to-speech
  3. OUTPUTMP3 per chapter

What it teaches

  • Text-to-speech
  • Text preparation
  • Long-job engineering

Build prompt

GOAL
Build a personal audiobook generator on this computer, in this project folder. I upload an EPUB, PDF or text file, choose a voice, and get chapter-by-chapter MP3 files that sound natural and that I can play on my phone. All speech generation runs locally with the Kokoro text-to-speech model.

DONE MEANS
A 200-page document converts to audio without crashing, without skipped text, and without me watching it. The audio has no clicks between sentences, reads numbers and abbreviations sensibly, and resumes from the last finished chapter if the job stops.
Download text

Repair prompt

The failed test is [test ID].
I did: [exact steps].
Expected: [result].
Actual: [result, the exact error, or the timestamp where the audio is wrong].
Find the cause, make the smallest repair, and rerun this test plus any test the change can affect. Keep my finished audiobooks and pronunciation file. Update the test log and tell me what to listen to.
Download text

How to use

1. Create a new project folder. 2. Open a coding agent that can run commands on your computer (for example Codex or Claude Code). 3. Paste the build prompt as one message. 4. Run the acceptance tests in the PDF before you rely on the tool.