Open-source AI podcast generator: turn any URL, PDF, text or topic into a two-host (or panel) podcast with distinct voices, chapters, SRT/VTT transcript and RSS. CLI + MCP server + Agent Skill, voiced by Miragea.
pip install miragea-podcast==0.1.0 Copy PIP instructions
miragea-podcast is an open-source (MIT) AI podcast generator that turns a web page, PDF, text file or plain topic into a finished two-host (or up to six-voice panel) podcast episode. Your AI agent or any LLM writes a natural conversation script, and miragea-podcast voices each host with a distinct cloned or saved voice through the Miragea voice API. It then mixes real turn-taking (interruptions, overlaps, laughs, pauses) and writes an MP3 with ID3 chapters, SRT/VTT/JSON transcripts, show notes and a Podcasting 2.0 RSS feed. It ships as a CLI, an MCP server (Claude Desktop, Claude Code, Cursor, VS Code, Windsurf) and an Agent Skill. It needs no GPU, no local TTS model and no second LLM key when an agent writes the script.
Listen to the demo episode (MP3, 85 s) · Watch it with captions (MP4) · Read the script · PyPI
# 1. Install (Python 3.10+ and ffmpeg) pipx install miragea-podcast # or run without installing: uvx miragea-podcast ... # 2. Add your Miragea API key (create one at https://miragea.ai/workspace/api) export MIRAGEA_API_KEY=... miragea-podcast doctor # free check: key, network, ffmpeg # 3. Free dry run with placeholder tones (no credits, no network) miragea-podcast make examples/earworms.md --preview # 4. The real episode: one voice per host, cloned from public samples miragea-podcast make examples/earworms.md --intro-music chime --outro-music chime \ --host "Alex=https://example.com/alex.wav|Exact words spoken in alex.wav." \ --host "Sam=https://example.com/sam.wav|Exact words spoken in sam.wav." Or straight from a source, if you have an OpenAI-compatible LLM key (PODCAST_LLM_API_KEY, PODCAST_LLM_BASE_URL, PODCAST_LLM_MODEL):
miragea-podcast create https://en.wikipedia.org/wiki/Earworm --minutes 5 --style deep-dive \ --host "Alex=..." --host "Sam=..." Using Claude Code, Codex or Cursor instead? You don't need an LLM key at all: the agent writes the script. Agents can also add the general Miragea integration with: Install https://miragea.ai/skills/miragea-audio/install.md.
Everything below came from one real run of examples/earworms.md (207 words, 2 hosts, 3 chapters, 15 voice requests). No numbers were edited.
As a check, we sent the finished MP3 back through Miragea speech recognition, and it returned the script word for word apart from one homophone ("cereal" heard as "serial").
The MCP server exposes 7 tools: read_source, script_guide, list_voices, list_tags, plan_podcast, create_podcast, build_feed. It also has one prompt, make_podcast. The agent writes the script itself, so it needs no LLM key.
claude mcp add miragea-podcast -e MIRAGEA_API_KEY= -- uvx --from miragea-podcast miragea-podcast-mcp Claude Desktop, Cursor, Windsurf (claude_desktop_config.json, ~/.cursor/mcp.json, ...)
{ "mcpServers": { "miragea-podcast": { "command": "uvx", "args": ["--from", "miragea-podcast", "miragea-podcast-mcp"], "env": { "MIRAGEA_API_KEY": " " } } } } miragea-podcast config vscode (or cursor, windsurf, claude-desktop, claude-code) prints the exact snippet. Then ask: "Turn https://example.com/article into a 5-minute two-host podcast, with Alex and Sam."
skills/ai-podcast/SKILL.md teaches Claude Code, Codex, Cursor and other SKILL.md-aware agents the whole workflow: read, brief, write, plan, make, publish. It is also part of the miragea-skills collection:
npx skills add https://codeberg.org/miragea-voice/miragea-skills.git Script format --- title: Why Is the Ocean Salty? description: Two hosts untangle a question every kid asks. language: en --- ## Cold open Alex: [excited] Okay, I learned something wild this week. Sam: [chuckles] You say that every week. Alex: Rain slowly dissolves minerals out of rocks— Sam: [interrupts] Wait, so the salt starts on land? Alex: [overlap] On land! [pause 0.6s] ## Where the salt goes Sam: Rivers carry those minerals to the sea... Name: text is one turn. ## Heading starts a chapter. 2 to 6 speakers. Delivery tags go right before the words they colour: [laughs], [chuckles], [sighs], [gasps], [whispers], [excited], [surprised], [shouts], [clears throat] and more (miragea-podcast tags). *laughs* and (laughs) work too. [interrupts] and [overlap] change timing as well as delivery: the turn starts before the other voice has finished. [pause 1.5s] inserts silence. JSON scripts ({"chapters": [{"title", "turns": [{"speaker", "text"}]}]}) are accepted too. Voices Each speaker gets their own voice in one of three ways:
Options can follow after ;, for example Sam=actor:123;speed=1.05. A TOML file works too (--hosts-file hosts.toml). Only clone voices you have the right to use.
Useful flags: --style, --minutes, --cast "Name=role", --model expressive|standard, --intro-music FILE|chime, --outro-music, --cover art.jpg, --max-credits N, --gap 0.32, -o DIR, --json.
Environment: MIRAGEA_API_KEY (required), MIRAGEA_BASE_URL (default https://miragea.ai/v1), MIRAGEA_OUTPUT_DIR, MIRAGEA_DEFAULT_MODEL, MIRAGEA_CONCURRENCY (1-8).
# upload ./episodes to any static host (S3, R2, GitHub/Codeberg Pages, Netlify), then: miragea-podcast feed ./episodes --base-url https://cdn.example.com/show \ --title "Curious Minutes" --author "You" --image https://cdn.example.com/show/art.jpg --email you@example.com The feed is RSS 2.0 with iTunes tags and Podcasting 2.0 podcast:transcript, podcast:chapters and podcast:person. Submit its URL to Apple Podcasts, Spotify for Creators or the Podcast Index. Preview episodes are never published.
Comparison as of November 2026, based on each project's public docs. Corrections are welcome via issues.
Run miragea-podcast prompt paper.pdf --minutes 8. Paste the brief into any LLM (or let your agent read it), save the script, then miragea-podcast make script.md --host ... --host .... With an LLM key set, miragea-podcast create paper.pdf --host ... --host ... does it in one step.
Yes. miragea-podcast produces the same two-host "deep dive" format, but you can read and edit the script, pick or clone each host's voice, set the length and style, and you get chapters, transcripts and an RSS feed.
Yes. Record 10 to 30 seconds of clean speech, upload it somewhere public (a direct file URL), and pass --host "Me=https://.../me.wav|the exact words you said".
Add the MCP config shown above, restart the client and ask for an episode. The agent calls read_source, writes the script with script_guide, checks it with plan_podcast and renders it with create_podcast.
script_guide accepts up to 90 minutes. Long turns are split at sentence boundaries automatically, and runs are resumable, so long episodes are practical.
plan prints a credit estimate before anything is spent, and --max-credits refuses to run above your limit. Tags, plans, previews and cached re-runs are free. See miragea.ai for current plans.
The script format and mixing are language-agnostic. Set language: in the front matter and write the script in that language. Subtitles handle CJK width correctly.
Local multi-speaker TTS needs a GPU, large models and fragile dependencies, and those are the most common issues in similar projects. Cloud voices from one API mean pipx install and an API key are all you need.
git clone https://codeberg.org/miragea-voice/miragea-podcast.git && cd miragea-podcast uv venv && uv pip install -e '.[dev]' pytest # 36 tests, offline: the Miragea API is mocked with httpx.MockTransport; needs ffmpeg ruff check . python docs/make_images.py # re-render README images and the demo video from examples/output Project layout: src/miragea_podcast/ (script.py parser and segmenter, voices.py, tags.py, synth.py parallel cached synthesis, mix.py timeline, mastering and ID3 chapters, subtitles.py, rss.py, sources.py, server.py MCP, cli.py), skills/ai-podcast/, examples/, tests/.
MIT. Demo voices are derived from CMU ARCTIC (free for any use). "NotebookLM" is a trademark of Google LLC; this project is not affiliated with Google.
agent-skill ai-podcast audio-overview claude cursor mcp mcp-server miragea multi-speaker notebooklm notebooklm-alternative pdf-to-podcast podcast podcast-generator rss text-to-podcast text-to-speech transcript tts voice-cloning
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
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.
None of the files in this release were uploaded with provenance metadata.
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.




