Skip to content
FramesField
Intermediate Light CLI / Copy-Paste Script
Verified Dec 1, 2026

Multi-Speaker Audiobook & Narrative Podcast Production Pipeline (Open-Weight + FFmpeg)

What you’ll make

Broadcast-uniform 44.1 kHz 192 kbps CBR MP3 audiobook chapters or multi-speaker narrative podcast episodes with consistent inter-chapter loudness and natural pacing.

Transform written books, newsletters, or multi-character audio scripts into broadcast-uniform episodes at $0 local GPU cost (or ~$0.02–$0.025 per 1K chars hosted): preprocess prose for the ear, synthesize 250–450 char paragraph chunks in Apache-2.0 Kokoro 82M or MIT Chatterbox TTS, normalize mixed sample rates to 44.1 kHz, stitch with deterministic 0.85s breath pauses + 1.0s/2.5s chapter padding, and batch-master to uniform RMS.

Before you start
  • Your written manuscript or multi-speaker dialogue script split into numbered paragraphs
  • Kokoro 82M (Apache-2.0 local or $0.02/1K fal.ai) and/or Chatterbox TTS (MIT local or $0.025/1K fal.ai)
  • Python 3 and FFmpeg 7.x locally for mixed-sample-rate conform, silence stitching, and batch mastering
Estimated cost
$0.00 local open-weight GPU/Mac · ~$8.64 hosted Kokoro for a full 8-hour book
Time needed
30 min
Jump to section (2)
  1. 01Why modular paragraph chunking is the secret to studio-grade long-form audio
  2. 02Casting a cohesive multi-speaker audio drama
Step-by-step overview
SIGNAL PATH READY Click any node or press “Step Through” to trace data flow from input plate to final deliverable.
01–04
Ear-Ready Script → Paragraph Chunks (Kokoro / Chatterbox) → 44.1k Stitch (0.85s) → Uniform RMS Master
Official Demo · Privacy-Enhanced Player (Zero Cookies Until Click)

Ear-Ready Script → Paragraph Chunks (Kokoro / Chatterbox) → 44.1k Stitch (0.85s) → Uniform RMS Master

ElevenLabs (Official Demo) · youtube-nocookie.com
Frame 01 SCRIPT · $0.00
Spoken Glossary & Chunks
250–450 Chars / Paragraph

Expand acronyms, numbers, and Roman numerals before TTS so cadence stays conversational.

Frame 02 CAST · $0 Local
Multi-Speaker Synthesis
Kokoro 82M + Chatterbox MIT

Isolate 10s voice-actor reference clips ($0.02) first; keep Chatterbox exaggeration at 0.45.

Frame 03 STITCH · $0.00
44.1k Conform & RMS Lock
1.0s Head · 0.85s Gap · 2.5s Tail

Normalize mixed 24k/48k WAVs before concat and batch-master every chapter to identical RMS.

Paragraph-level chunk synthesis with deterministic silence stitching lets you re-roll any single mispronounced sentence in 2 seconds without regenerating an entire chapter.

Source: ElevenLabs (Official Demo) Model: KOKORO 82M (APACHE-2.0) / CHATTERBOX (MIT) + FFMPEG CHAPTER STITCHER Verified Dec 1, 2026
Original source ↗

Why modular paragraph chunking is the secret to studio-grade long-form audio

Rendering a 4,000-word chapter in a single monolithic TTS call invites three predictable headaches: voice cadence accelerates unpredictably near the end, one misspelled name invalidates twenty minutes of audio, and consecutive chapters drift 3–4 dB apart in volume. By splitting manuscripts into deterministic 250–450 character blocks, storing numbered chunk WAVs, and running build_audiobook_chapter.py, you get total editorial agility at $0.00 local open-weight cost (or pennies hosted on fal.ai).

Casting a cohesive multi-speaker audio drama

  • Narrator anchor: Choose a calm, mid-register voice in Kokoro 82M or Chatterbox TTS (exaggeration: 0.45) with zero vocal fatigue over long listening sessions.
  • Distinct character voices: Separate speakers by clear pitch register and pacing rather than exaggerated caricatures—listeners track dialogue effortlessly when Speaker A sits bright/crisp and Speaker B sits warm/unhurried.
  • Tighter dialogue gap vs. paragraph gap: In multi-speaker back-and-forth exchanges, shorten the gap duration inside build_audiobook_chapter.py from 0.85s down to 0.35s so conversations feel responsive instead of stiff.

Scope exact multi-hour book budgets interactively in Tool 07: AI Audio, Podcast & Dubbing Cost Calculator, read Guide 36: AI Podcast Cleanup, Audiobooks & ACX Mastering, and prep scripts fast using Skill 69: Podcast & Audiobook Script Pacing Builder.

Copy-paste template

Multi-Speaker Mixed-Rate Chapter Stitcher & Uniform ACX/RSS Master (Python) build_audiobook_chapter.py
Conforms mixed 24 kHz/48 kHz multi-speaker WAV chunks to clean 44.1 kHz mono, stitches deterministic 1.0s head + 0.85s paragraph gaps + 2.5s tail, and masters uniform 192k CBR MP3.
cat <<'PY' > build_audiobook_chapter.py
import subprocess, sys
from pathlib import Path

if len(sys.argv) < 4:
    sys.exit("Usage: python3 build_audiobook_chapter.py <acx|podcast> <out.mp3> <chunk01.wav> [chunk02.wav ...]")

mode = sys.argv[1].lower()
out_mp3 = Path(sys.argv[2])
chunks = [Path(p) for p in sys.argv[3:]]
work = out_mp3.parent / "_stitch_tmp"
work.mkdir(parents=True, exist_ok=True)

# 1) Create clean 44.1 kHz silent head (1.0s), paragraph gap (0.85s), and tail (2.5s)
sil = {}
for name, dur in [("head", 1.0), ("gap", 0.85), ("tail", 2.5)]:
    p = work / f"sil_{name}.wav"
    subprocess.run(
        ["ffmpeg", "-y", "-f", "lavfi", "-i", "anullsrc=r=44100:cl=mono", "-t", str(dur), "-c:a", "pcm_s16le", str(p)],
        check=True, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL
    )
    sil[name] = p

# 2) Conform every speaker chunk to identical 44.1 kHz mono WAV before concatenation
concat_file = work / "concat.txt"
with open(concat_file, "w") as f:
    f.write(f"file '{sil['head'].resolve()}'\n")
    for idx, src in enumerate(chunks):
        norm = work / f"norm_{idx:04d}.wav"
        subprocess.run(
            ["ffmpeg", "-y", "-i", str(src), "-ar", "44100", "-ac", "1", "-c:a", "pcm_s16le", str(norm)],
            check=True, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL
        )
        f.write(f"file '{norm.resolve()}'\n")
        if idx < len(chunks) - 1:
            f.write(f"file '{sil['gap'].resolve()}'\n")
    f.write(f"file '{sil['tail'].resolve()}'\n")

raw_chapter = work / "chapter_raw.wav"
subprocess.run(
    ["ffmpeg", "-y", "-f", "concat", "-safe", "0", "-i", str(concat_file), "-c:a", "pcm_s16le", str(raw_chapter)],
    check=True, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL
)

# 3) Master cleanly with post-loudnorm 44.1 kHz resample & strict CBR MP3 header
if mode == "acx":
    af = "highpass=f=80,loudnorm=I=-20:TP=-3.2:LRA=7,alimiter=limit=0.69:attack=5:release=50,aresample=44100"
    channels = "1"
else:
    af = "highpass=f=80,loudnorm=I=-16:TP=-1.0:LRA=9,aresample=44100"
    channels = "2"

subprocess.run(
    ["ffmpeg", "-y", "-i", str(raw_chapter), "-af", af, "-ar", "44100", "-ac", channels, "-c:a", "libmp3lame", "-b:a", "192k", "-write_xing", "0", str(out_mp3)],
    check=True, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL
)
print(f"Built uniform {mode.upper()} chapter master: {out_mp3}")
PY

Helpful prompts & skills for this workflow

Frequently Asked Questions

Why conform every TTS chunk to 44.1 kHz mono before running FFmpeg concat?
Kokoro 82M exports 24 kHz audio while Chatterbox or ElevenLabs exports 24–48 kHz. Concatenating mixed sample rates directly triggers jarring clicks, speed warps, and broken chapter durations.
How do I prep a voice actor's reference recording before cloning in Chatterbox TTS?
Obtain explicit written voice-licensing consent first, record 10–15 seconds of calm natural reading, and run it through ElevenLabs Audio Isolation ($0.02) so room hum never bakes into every synthesized chapter.
Can I add a custom intro song and chapter transition stings automatically?
Yes—generate a custom show theme in MiniMax Music 2.0 ($0.03/song), trim a 10-second intro and 3-second chapter chime normalized to match your episode loudness, and pass them as the first/transition items in your stitch list.
What should I check regarding AI narration disclosure on audiobook retailers?
Always confirm your target storefront's current policy (Apple Books Digital Narration, Spotify/Findaway, ElevenLabs Reader, and direct Shopify stores support disclosed digital narration; Amazon ACX maintains specific eligibility rules for synthetic voices).
Use this page in AI tools or notes
raw .md