<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Miragea</title>
    <description>The latest articles on DEV Community by Miragea (@miragea-voice).</description>
    <link>https://dev.to/miragea-voice</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4233553%2Fd67c1eba-0c21-4ebd-a6b0-ce0baeed7f6f.png</url>
      <title>DEV Community: Miragea</title>
      <link>https://dev.to/miragea-voice</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/miragea-voice"/>
    <language>en</language>
    <item>
      <title>Why AI Voiceover Reads Your Numbers and Dates Wrong (and a Free Script Fixer)</title>
      <dc:creator>Miragea</dc:creator>
      <pubDate>Tue, 24 Nov 2026 02:06:00 +0000</pubDate>
      <link>https://dev.to/miragea-voice/why-ai-voiceover-reads-your-numbers-and-dates-wrong-and-a-free-script-fixer-1556</link>
      <guid>https://dev.to/miragea-voice/why-ai-voiceover-reads-your-numbers-and-dates-wrong-and-a-free-script-fixer-1556</guid>
      <description>&lt;p&gt;AI voices stumble on "3:30pm", "$4.99", "12/01/2026", "Dr." and URLs, and re-generating audio to fix it wastes credits. &lt;strong&gt;tts-script-doctor&lt;/strong&gt; is an open-source (MIT) Agent Skill with one Python script that lints a script for those risks, rewrites it into spoken form offline, splits long text into sentence-safe chunks, and can voice it with the &lt;a href="https://miragea.ai" rel="noopener noreferrer"&gt;Miragea&lt;/a&gt; speech API and verify the MP3 by transcribing it back.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fnptddv2h3nja3ra8vuio.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fnptddv2h3nja3ra8vuio.png" alt="Flow: lint, fix, chunk, speak" width="800" height="225"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Lint and fix (free, no API key)
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git clone https://codeberg.org/miragea-voice/miragea-skills
python3 miragea-skills/skills/tts-script-doctor/scripts/scriptdoctor.py fix script.txt
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Input: &lt;code&gt;Dr. Rivera's workshop starts at 3:30pm on Nov 22, 2026. Tickets cost $4.99 (50% off until 12/01/2026), and the 2nd batch ships soon. Questions? Email hi@example.com.&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Output: &lt;code&gt;Doctor Rivera's workshop starts at three thirty P M on November twenty-second, twenty twenty-six. Tickets cost four dollars and ninety-nine cents (fifty percent off until December first, twenty twenty-six), and the second batch ships soon. Questions? Email hi at example dot com.&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Add brand names with &lt;code&gt;--lexicon lexicon.json&lt;/code&gt; (&lt;code&gt;{"Miragea": "Mih-RAY-uh"}&lt;/code&gt;).&lt;/p&gt;

&lt;h2&gt;
  
  
  Voice it and check it
&lt;/h2&gt;

&lt;p&gt;Create an API key at &lt;a href="https://miragea.ai/workspace/api" rel="noopener noreferrer"&gt;https://miragea.ai/workspace/api&lt;/a&gt;, export &lt;code&gt;MIRAGEA_API_KEY&lt;/code&gt;, and run:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;python3 miragea-skills/skills/tts-script-doctor/scripts/scriptdoctor.py speak script.txt --actor &lt;span class="s2"&gt;"My voice"&lt;/span&gt; -o out.mp3 --verify
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fmax1z9368a8j49kj4f6e.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fmax1z9368a8j49kj4f6e.png" alt="Real terminal output of speak with verification" width="800" height="235"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;A 17 s MP3 came back, and speech recognition returned the original times, dates and prices. The files are in &lt;a href="https://codeberg.org/miragea-voice/miragea-skills/src/branch/main/examples/tts-script-doctor" rel="noopener noreferrer"&gt;examples/tts-script-doctor&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Use it from an agent
&lt;/h2&gt;

&lt;p&gt;Install the whole collection in Claude Code with &lt;code&gt;/plugin marketplace add https://codeberg.org/miragea-voice/miragea-skills&lt;/code&gt;, or point any agent at the skill folder. For the Miragea skill itself: "Install &lt;a href="https://miragea.ai/skills/miragea-audio/install.md" rel="noopener noreferrer"&gt;https://miragea.ai/skills/miragea-audio/install.md&lt;/a&gt;".&lt;/p&gt;

&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Why does text-to-speech read numbers wrong?&lt;/strong&gt; Digits are ambiguous: 2026 can be a year or a quantity, 12/01 a date in two orders. Spelling them out removes the guess.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Does it need a GPU or a second LLM key?&lt;/strong&gt; No. The rules are plain Python.&lt;/p&gt;

</description>
      <category>python</category>
      <category>ai</category>
      <category>tts</category>
      <category>opensource</category>
    </item>
    <item>
      <title>How to Prepare a Voice Sample for AI Voice Cloning (and Check the Clone Actually Works)</title>
      <dc:creator>Miragea</dc:creator>
      <pubDate>Sat, 14 Nov 2026 02:09:11 +0000</pubDate>
      <link>https://dev.to/miragea-voice/how-to-prepare-a-voice-sample-for-ai-voice-cloning-and-check-the-clone-actually-works-1be0</link>
      <guid>https://dev.to/miragea-voice/how-to-prepare-a-voice-sample-for-ai-voice-cloning-and-check-the-clone-actually-works-1be0</guid>
      <description>&lt;p&gt;Most failed AI voice clones come from a bad reference clip, not a bad model: silence at the start, a second speaker, clipping, or a transcript that does not match the audio. &lt;strong&gt;voice-clone-kit&lt;/strong&gt; is an open-source (MIT) Agent Skill with one small Python script that turns any recording into a clean cloning reference for the &lt;a href="https://miragea.ai" rel="noopener noreferrer"&gt;Miragea&lt;/a&gt; speech API and proves the result with a speech-recognition round trip. It needs only Python and ffmpeg.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fvx9eevcfzu0hjzxwkp2k.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fvx9eevcfzu0hjzxwkp2k.png" alt="Flow: prepare, transcribe, host, verify" width="800" height="225"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Prepare the clip
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git clone https://codeberg.org/miragea-voice/miragea-skills &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="nb"&gt;cd&lt;/span&gt; miragea-skills
python3 skills/voice-clone-kit/scripts/clonekit.py prepare memo.m4a -o reference.wav
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The script runs ffmpeg &lt;code&gt;silencedetect&lt;/code&gt;, finds the longest run of speech between 8 and 25 seconds, and cuts only inside pauses so no word is clipped. The result is mono 24 kHz, high-passed at 70 Hz and loudness-normalised. The JSON report says in plain words if the clip is too short, too quiet, clipped or mostly pauses.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Get the exact words
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="kd"&gt;export&lt;/span&gt; &lt;span class="nv"&gt;MIRAGEA_API_KEY&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;...   &lt;span class="c"&gt;# create one at https://miragea.ai/workspace/api&lt;/span&gt;
python3 skills/voice-clone-kit/scripts/clonekit.py transcribe reference.wav
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The cloning request takes &lt;code&gt;reference_text&lt;/code&gt;, and it must match what is said. Read the transcript once and fix any slip.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Host it and verify
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;python3 skills/voice-clone-kit/scripts/clonekit.py host reference.wav      &lt;span class="c"&gt;# temporary public URL&lt;/span&gt;
python3 skills/voice-clone-kit/scripts/clonekit.py verify \
  --reference-audio-url URL --reference-text &lt;span class="s2"&gt;"exact words"&lt;/span&gt; -o clone-test.mp3
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;verify&lt;/code&gt; speaks a test sentence in the cloned voice, transcribes it back and reports &lt;code&gt;word_match&lt;/code&gt;. At 0.9 or higher the clone is intelligible; always listen to it too, because a transcript cannot judge timbre.&lt;/p&gt;

&lt;h2&gt;
  
  
  Real result
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F51pgeun4ntaagv0suan9.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F51pgeun4ntaagv0suan9.png" alt="Real terminal output of prepare and verify" width="799" height="256"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;A 15.9 s voice memo with 3 s of silence on each side and fan noise became a 10 s reference, and a new sentence in that voice came back with a word match of 1.0. The files are in &lt;a href="https://codeberg.org/miragea-voice/miragea-skills/src/branch/main/examples/voice-clone-kit" rel="noopener noreferrer"&gt;examples/voice-clone-kit&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Use it from an agent
&lt;/h2&gt;

&lt;p&gt;Claude Code, Codex and Cursor can load it as a skill; the repo is on Codeberg: &lt;a href="https://codeberg.org/miragea-voice/miragea-skills" rel="noopener noreferrer"&gt;https://codeberg.org/miragea-voice/miragea-skills&lt;/a&gt;. Only clone voices you own or have permission to use.&lt;/p&gt;

&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;How long should a voice cloning sample be?&lt;/strong&gt; About 10 to 20 seconds of one person talking clearly.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Can I use a video as the source?&lt;/strong&gt; Yes, &lt;code&gt;prepare&lt;/code&gt; drops the video and works on the audio track.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Is the upload private?&lt;/strong&gt; No. &lt;code&gt;host&lt;/code&gt; makes a temporary public link, so only upload samples you are happy to share.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>python</category>
      <category>audio</category>
      <category>opensource</category>
    </item>
    <item>
      <title>How to Convert an EPUB to an M4B Audiobook in a Cloned Voice (No GPU, Open Source)</title>
      <dc:creator>Miragea</dc:creator>
      <pubDate>Fri, 13 Nov 2026 02:06:38 +0000</pubDate>
      <link>https://dev.to/miragea-voice/how-to-convert-an-epub-to-an-m4b-audiobook-in-a-cloned-voice-no-gpu-open-source-25pk</link>
      <guid>https://dev.to/miragea-voice/how-to-convert-an-epub-to-an-m4b-audiobook-in-a-cloned-voice-no-gpu-open-source-25pk</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F1opssobrh5turowayc1e.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F1opssobrh5turowayc1e.png" alt="miragea-audiobook banner" width="800" height="338"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you have searched for "EPUB to audiobook" you have probably met tools that want PyTorch, a few gigabytes of model weights and a GPU. This tutorial does the same job from a plain command line: &lt;strong&gt;miragea-audiobook&lt;/strong&gt; reads an EPUB, Markdown or text file, narrates it through the Miragea API in a voice cloned from a short sample, and gives you one chaptered &lt;code&gt;.m4b&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  What you need
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Python 3.10+ and ffmpeg (&lt;code&gt;brew install ffmpeg&lt;/code&gt; or &lt;code&gt;apt install ffmpeg&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;A Miragea API key from &lt;a href="https://miragea.ai/workspace/api" rel="noopener noreferrer"&gt;https://miragea.ai/workspace/api&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;A clean 5-30 second recording of the voice you want, hosted at a public https URL, and the exact words spoken in it&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  1. Install and set the key
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pipx install miragea-audiobook
&lt;span class="kd"&gt;export&lt;/span&gt; &lt;span class="nv"&gt;MIRAGEA_API_KEY&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;...
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  2. Check what it found (offline)
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;miragea-audiobook chapters book.epub
miragea-audiobook plan book.epub
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;EPUB chapters come from the spine and each file's first heading. Covers and copyright stubs under 20 words are skipped. For Markdown, each &lt;code&gt;##&lt;/code&gt; heading is a chapter; for plain text, lines starting with "Chapter", "Part", "Prologue" and similar.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fd4auhf9in26va0alaz4x.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fd4auhf9in26va0alaz4x.png" alt="How the pipeline works: read, chunk, voice, assemble, package" width="800" height="224"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Make the audiobook
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;miragea-audiobook make book.epub \
  --voice &lt;span class="s1"&gt;'https://example.com/my-voice.wav|Exact words spoken in that sample.'&lt;/span&gt; --split
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The text is cut into whole-sentence chunks (900 characters by default), voiced in parallel, and cached by request hash. If something fails halfway, run the same command again: finished chunks are reused and not billed twice.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fu81wfnzow4bjeviditt1.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fu81wfnzow4bjeviditt1.png" alt="Terminal capture of a real run producing a two-chapter M4B" width="799" height="266"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  4. What you get
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;the-salt-road.m4b&lt;/code&gt; with chapter markers, a &lt;code&gt;.cue&lt;/code&gt; sheet, a &lt;code&gt;.chapters.txt&lt;/code&gt; list ready for YouTube descriptions, a JSON manifest and one MP3 per chapter. Here is the real waveform of the demo book, with the markers at the chapter starts:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fbo34fo4hud3tbkzg56sn.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fbo34fo4hud3tbkzg56sn.png" alt="Waveform of the demo audiobook with chapter markers" width="800" height="238"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Listen to the real demo: &lt;a href="https://codeberg.org/miragea-voice/miragea-audiobook/raw/branch/main/examples/demo/the-salt-road.m4b" rel="noopener noreferrer"&gt;https://codeberg.org/miragea-voice/miragea-audiobook/raw/branch/main/examples/demo/the-salt-road.m4b&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I ran chapter 1 back through speech recognition and it matched the source text word for word.&lt;/p&gt;

&lt;h2&gt;
  
  
  Tips
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Use &lt;code&gt;--preview&lt;/code&gt; first on a big book: it builds the whole file offline with placeholder tones so you can check chapters and timing for free.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;--chapters 1-3&lt;/code&gt; voices just a few chapters while you audition a voice.&lt;/li&gt;
&lt;li&gt;Audiobookshelf, Apple Books and VLC show the chapter list automatically.&lt;/li&gt;
&lt;li&gt;Only clone a voice you have the right to use.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Source (MIT): &lt;a href="https://codeberg.org/miragea-voice/miragea-audiobook" rel="noopener noreferrer"&gt;https://codeberg.org/miragea-voice/miragea-audiobook&lt;/a&gt;. Package: &lt;a href="https://pypi.org/project/miragea-audiobook/" rel="noopener noreferrer"&gt;https://pypi.org/project/miragea-audiobook/&lt;/a&gt;&lt;/p&gt;

</description>
      <category>python</category>
      <category>audiobook</category>
      <category>opensource</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>How to Make a Faceless YouTube Short From a Script With AI Voice and Captions (No GPU, Open Source)</title>
      <dc:creator>Miragea</dc:creator>
      <pubDate>Thu, 12 Nov 2026 02:04:52 +0000</pubDate>
      <link>https://dev.to/miragea-voice/how-to-make-a-faceless-youtube-short-from-a-script-with-ai-voice-and-captions-no-gpu-open-source-2k3e</link>
      <guid>https://dev.to/miragea-voice/how-to-make-a-faceless-youtube-short-from-a-script-with-ai-voice-and-captions-no-gpu-open-source-2k3e</guid>
      <description>&lt;p&gt;A &lt;strong&gt;faceless Short&lt;/strong&gt; is a vertical video with a voiceover, a headline and captions but no person on camera. &lt;strong&gt;faceless-shorts&lt;/strong&gt; is an open-source (MIT) Agent Skill that turns a short scene script into a finished 1080x1920 MP4: each scene is voiced through the &lt;a href="https://miragea.ai" rel="noopener noreferrer"&gt;Miragea&lt;/a&gt; speech API, its length is set from the real audio, and word-highlight captions are burned in. It needs only Python and ffmpeg: no GPU, no stock-footage key, no second LLM key.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ft7djnnjbwkazn7mq6amv.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ft7djnnjbwkazn7mq6amv.png" alt="Flow: script, Miragea voice, timing from real audio, visuals, captions, MP4" width="800" height="260"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Write the script
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nl"&gt;"scenes"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
  &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nl"&gt;"id"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"hook"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"keyword"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Honey never spoils"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"text"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Here is a food that never goes bad. Honey."&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nl"&gt;"id"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"why"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"keyword"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Why?"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"text"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"It is so dry and so acidic that bacteria simply cannot grow in it."&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nl"&gt;"id"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"cta"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"keyword"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Follow for more"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"text"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Follow for one tiny fact every day."&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  2. Estimate, then make
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git clone https://codeberg.org/miragea-voice/miragea-skills &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="nb"&gt;cd&lt;/span&gt; miragea-skills
&lt;span class="kd"&gt;export&lt;/span&gt; &lt;span class="nv"&gt;MIRAGEA_API_KEY&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;...   &lt;span class="c"&gt;# create one at https://miragea.ai/workspace/api&lt;/span&gt;
python3 skills/faceless-shorts/scripts/shorts.py script.json --voice &lt;span class="s2"&gt;"Ava"&lt;/span&gt; --dry-run
python3 skills/faceless-shorts/scripts/shorts.py script.json --voice &lt;span class="s2"&gt;"Ava"&lt;/span&gt; --theme sunset -o short.mp4
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Unchanged scenes are cached by hash, so editing one line only re-voices that line. No saved voice? Clone one from a public sample with &lt;code&gt;--reference-audio-url&lt;/code&gt; and &lt;code&gt;--reference-text&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Real result
&lt;/h2&gt;

&lt;p&gt;A 17-second honey-facts Short made exactly this way. Speech recognition on the final MP4 returns the script word for word.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fv6gbp3dgqtkb73ttqljw.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fv6gbp3dgqtkb73ttqljw.png" alt="Four frames of the finished Short" width="800" height="356"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Video: &lt;a href="https://codeberg.org/miragea-voice/miragea-skills/raw/branch/main/examples/faceless-shorts/honey-demo.mp4" rel="noopener noreferrer"&gt;https://codeberg.org/miragea-voice/miragea-skills/raw/branch/main/examples/faceless-shorts/honey-demo.mp4&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Use it from an agent
&lt;/h2&gt;

&lt;p&gt;Install the skill collection in Claude Code, Codex or Cursor and ask: "Make a 30-second faceless Short about why the sky is blue." The agent writes the scenes and runs the script. Agent install line: &lt;code&gt;Install https://miragea.ai/skills/miragea-audio/install.md&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Does it need a GPU?&lt;/strong&gt; No. Voice comes from an API; video is drawn by ffmpeg.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Can I use my own images?&lt;/strong&gt; Yes, add &lt;code&gt;"image": "photo.jpg"&lt;/code&gt; to a scene for a slow zoom.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Where is the code?&lt;/strong&gt; &lt;a href="https://codeberg.org/miragea-voice/miragea-skills" rel="noopener noreferrer"&gt;https://codeberg.org/miragea-voice/miragea-skills&lt;/a&gt; (MIT, 82 offline tests).&lt;/p&gt;

</description>
      <category>ai</category>
      <category>youtube</category>
      <category>python</category>
      <category>opensource</category>
    </item>
    <item>
      <title>How to Dub a Video With Two Speakers Into Another Language and Keep Each Voice (Open Source)</title>
      <dc:creator>Miragea</dc:creator>
      <pubDate>Wed, 11 Nov 2026 02:11:48 +0000</pubDate>
      <link>https://dev.to/miragea-voice/how-to-dub-a-video-with-two-speakers-into-another-language-and-keep-each-voice-open-source-23ai</link>
      <guid>https://dev.to/miragea-voice/how-to-dub-a-video-with-two-speakers-into-another-language-and-keep-each-voice-open-source-23ai</guid>
      <description>&lt;p&gt;Dubbing a video into another language is easy when one person talks. It gets hard the moment there are two speakers: a single synthetic voice for everyone makes interviews and podcasts unwatchable, and the translated sentences rarely fit the original timing.&lt;/p&gt;

&lt;p&gt;This tutorial dubs a real two-speaker clip from English into Spanish with an open-source tool, &lt;strong&gt;&lt;a href="https://codeberg.org/miragea-voice/miragea-dub" rel="noopener noreferrer"&gt;miragea-dub&lt;/a&gt;&lt;/strong&gt; (MIT). Each speaker keeps their own cloned voice, the lines are fitted into the original timing, and you get a dubbed MP4, an audio track and subtitles.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F0ff1bngxwaqo5hsgua7c.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F0ff1bngxwaqo5hsgua7c.png" alt="Banner for miragea-dub: speaker lanes in English above the same lanes dubbed into Spanish" width="800" height="338"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What is AI video dubbing with a voice per speaker?
&lt;/h2&gt;

&lt;p&gt;AI video dubbing replaces the speech in a video with translated speech. A multi-speaker dub does four jobs: it &lt;strong&gt;transcribes&lt;/strong&gt; the video, &lt;strong&gt;separates the speakers&lt;/strong&gt;, &lt;strong&gt;translates&lt;/strong&gt; each line so it can be spoken in the same time slot, and &lt;strong&gt;voices&lt;/strong&gt; each speaker with a voice that resembles the original. miragea-dub runs those steps from the command line, as an MCP server for AI agents, or as an Agent Skill. Voices come from the &lt;a href="https://miragea.ai" rel="noopener noreferrer"&gt;Miragea&lt;/a&gt; voice API, so no GPU is needed.&lt;/p&gt;

&lt;h2&gt;
  
  
  Hear the result first
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://codeberg.org/miragea-voice/miragea-dub/raw/branch/main/examples/demo-dubbed-es.mp4" rel="noopener noreferrer"&gt;Dubbed MP4 (Spanish, burned-in subtitles)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://codeberg.org/miragea-voice/miragea-dub/raw/branch/main/examples/real/original-audio.mp3" rel="noopener noreferrer"&gt;Original English audio&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fg7ugdg1hm0g69775ldzh.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fg7ugdg1hm0g69775ldzh.gif" alt="Animated preview of the Spanish dub with burned-in subtitles" width="640" height="360"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Both voices were cloned from the clip itself. Transcribing the Spanish track again returns the translated script almost word for word.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 1: install
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pipx install miragea-dub     &lt;span class="c"&gt;# needs ffmpeg&lt;/span&gt;
&lt;span class="kd"&gt;export&lt;/span&gt; &lt;span class="nv"&gt;MIRAGEA_API_KEY&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;...   &lt;span class="c"&gt;# key from https://miragea.ai/workspace/api&lt;/span&gt;
miragea-dub doctor
miragea-dub demo             &lt;span class="c"&gt;# optional: offline run with test tones&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Step 2: transcribe and find the speakers
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;miragea-dub prepare two-voices.mp4 --to es --speakers 2
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This writes &lt;code&gt;two-voices.dub/dub.json&lt;/code&gt;. Miragea's speech recognition returns subtitle cues cut at a fixed width, sometimes mid-word, so miragea-dub regroups them into whole sentences using the punctuated full text. A built-in, GPU-free clustering step then labels who speaks (S1, S2). On the demo clip all six lines were assigned to the right speaker.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 3: translate with your AI agent (or any LLM)
&lt;/h2&gt;

&lt;p&gt;Each line has a length budget. Fill the &lt;code&gt;translation&lt;/code&gt; fields yourself, let Claude or Cursor do it through the MCP server, or run &lt;code&gt;miragea-dub translate --translator openai&lt;/code&gt; with any OpenAI-compatible endpoint. Short lines matter: the dub has to fit.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 4: clone, voice, fit, mix
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;miragea-dub render two-voices.dub/dub.json --model expressive
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F4vjkbur57z7rsgdp7qwb.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F4vjkbur57z7rsgdp7qwb.png" alt="Terminal capture of the real run: 6 lines, 2 speakers, 4 sped up, 0 trimmed" width="800" height="251"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;For each speaker miragea-dub cuts a 8-20 second reference from the video, hosts it on a temporary link and synthesizes every line with that voice. Lines are sped up slightly (limit 1.35x) to fit; anything that still does not fit is listed in &lt;code&gt;lines_to_shorten&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fa6f0ivb7r5hjpnbhpx5b.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fa6f0ivb7r5hjpnbhpx5b.png" alt="Timeline: outlined bars are the original slots, solid bars the dubbed lines after fitting" width="799" height="216"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 5: publish
&lt;/h2&gt;

&lt;p&gt;You get &lt;code&gt;two-voices.es.mp4&lt;/code&gt; (dub + original audio + subtitles), &lt;code&gt;two-voices.es.m4a&lt;/code&gt; for YouTube's additional-audio feature, SRT/VTT subtitles and a JSON report.&lt;/p&gt;

&lt;h2&gt;
  
  
  Use it from Claude, Cursor or Codex
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nl"&gt;"mcpServers"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nl"&gt;"miragea-dub"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nl"&gt;"command"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"uvx"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"args"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"--from"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"miragea-dub"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"miragea-dub-mcp"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"env"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nl"&gt;"MIRAGEA_API_KEY"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"your-key"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Or install the &lt;code&gt;video-dubbing&lt;/code&gt; skill from &lt;a href="https://codeberg.org/miragea-voice/miragea-skills" rel="noopener noreferrer"&gt;miragea-skills&lt;/a&gt;. The agent does the translation, so no second LLM key is needed.&lt;/p&gt;

&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Can I dub a two-person interview and keep both voices?&lt;/strong&gt; Yes, each speaker is cloned from their own lines.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Is there an open-source alternative to hosted dubbing apps?&lt;/strong&gt; The pipeline is MIT; voices need a Miragea API key. Bigger GUI projects such as VideoLingo and pyvideotrans exist too, this one is the small scriptable one for agents.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Only clone voices you have permission to clone.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Source: &lt;a href="https://codeberg.org/miragea-voice/miragea-dub" rel="noopener noreferrer"&gt;codeberg.org/miragea-voice/miragea-dub&lt;/a&gt; · &lt;a href="https://pypi.org/project/miragea-dub/" rel="noopener noreferrer"&gt;PyPI&lt;/a&gt;&lt;/p&gt;

</description>
      <category>python</category>
      <category>opensource</category>
      <category>ai</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>How to Make a NotebookLM-Style Two-Host AI Podcast from Any PDF or URL (Open Source)</title>
      <dc:creator>Miragea</dc:creator>
      <pubDate>Tue, 10 Nov 2026 02:14:31 +0000</pubDate>
      <link>https://dev.to/miragea-voice/how-to-make-a-notebooklm-style-two-host-ai-podcast-from-any-pdf-or-url-open-source-2o1p</link>
      <guid>https://dev.to/miragea-voice/how-to-make-a-notebooklm-style-two-host-ai-podcast-from-any-pdf-or-url-open-source-2o1p</guid>
      <description>&lt;p&gt;NotebookLM's Audio Overviews made a lot of people want the same thing: drop in an article or a PDF and get back two hosts actually &lt;em&gt;talking&lt;/em&gt; about it. Once you try to use that for a real show, you hit the limits quickly. You can't read or edit the script, you can't pick the voices, and you get no chapters, no transcript file and no RSS feed.&lt;/p&gt;

&lt;p&gt;This tutorial builds that pipeline with open-source tools you control. You'll go from a URL, PDF or topic to a finished, publish-ready two-host episode, with a script you can edit, a distinct voice for each host, real interruptions and laughs, chapters, SRT/VTT transcripts and a podcast feed.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fad6rgembh28600e7h9ko.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fad6rgembh28600e7h9ko.png" alt="Banner for miragea-podcast: two AI hosts, Alex and Sam, with waveforms, next to the files the tool writes: MP3 with chapters, SRT/VTT transcript, chapters JSON, show notes and a Podcasting 2.0 RSS feed" width="800" height="338"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What is an AI podcast generator?
&lt;/h2&gt;

&lt;p&gt;An AI podcast generator turns written material into a spoken conversation. It does three jobs: it &lt;strong&gt;writes&lt;/strong&gt; a script that sounds like people talking rather than an essay read aloud, it &lt;strong&gt;voices&lt;/strong&gt; each speaker with a different voice, and it &lt;strong&gt;produces&lt;/strong&gt; the result into an audio file and the files podcast apps expect (chapters, transcript, feed). The tool used here, &lt;strong&gt;&lt;a href="https://codeberg.org/miragea-voice/miragea-podcast" rel="noopener noreferrer"&gt;miragea-podcast&lt;/a&gt;&lt;/strong&gt; (MIT), handles the voicing and production. Writing is left to whichever model you already use (Claude, GPT, a local LLM) or to your AI agent directly. The voices come from the &lt;a href="https://miragea.ai" rel="noopener noreferrer"&gt;Miragea&lt;/a&gt; API, so there's no GPU or local TTS model to install.&lt;/p&gt;

&lt;h2&gt;
  
  
  Hear the result first
&lt;/h2&gt;

&lt;p&gt;Here is an 85-second episode made in one run from a hand-written Markdown script (&lt;a href="https://codeberg.org/miragea-voice/miragea-podcast/src/branch/main/examples/earworms.md" rel="noopener noreferrer"&gt;script&lt;/a&gt;):&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;🎧 &lt;a href="https://codeberg.org/miragea-voice/miragea-podcast/raw/branch/main/examples/output/why-songs-get-stuck-in-your-head.mp3" rel="noopener noreferrer"&gt;Listen to the MP3&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;🎬 &lt;a href="https://codeberg.org/miragea-voice/miragea-podcast/raw/branch/main/examples/demo.mp4" rel="noopener noreferrer"&gt;Watch it with burned-in captions (MP4)&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fon8nlmesr8a4u8so568o.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fon8nlmesr8a4u8so568o.gif" alt="Animated preview of the demo episode: a waveform moves while captions show Alex and Sam talking about why songs get stuck in your head" width="720" height="405"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The two voices are cloned on the fly from short CMU ARCTIC recordings (free for any use, commercial included). Notice the interruption near the end of the second chapter ("Wait, so finishing the song can help?"): the second host really does start talking before the first one finishes.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 1: Install
&lt;/h2&gt;

&lt;p&gt;You need Python 3.10+ and ffmpeg.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pipx install miragea-podcast       &lt;span class="c"&gt;# or prefix every command with: uvx&lt;/span&gt;
&lt;span class="kd"&gt;export&lt;/span&gt; &lt;span class="nv"&gt;MIRAGEA_API_KEY&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;...         &lt;span class="c"&gt;# create one at https://miragea.ai/workspace/api&lt;/span&gt;
miragea-podcast doctor             &lt;span class="c"&gt;# free: checks the key, the API and ffmpeg&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Step 2: Get a script brief
&lt;/h2&gt;

&lt;p&gt;Podcast scripts fail in predictable ways: long monologues, no reactions, invented statistics. The &lt;code&gt;prompt&lt;/code&gt; command prints a brief that heads those off. It also pulls the readable text out of a URL or PDF and appends it:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;miragea-podcast prompt https://en.wikipedia.org/wiki/Earworm --minutes 5 --style deep-dive &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; brief.txt
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Paste &lt;code&gt;brief.txt&lt;/code&gt; into any chat model, or let your agent read it. Six styles are built in: &lt;code&gt;deep-dive&lt;/code&gt;, &lt;code&gt;debate&lt;/code&gt;, &lt;code&gt;interview&lt;/code&gt;, &lt;code&gt;explainer&lt;/code&gt;, &lt;code&gt;news-brief&lt;/code&gt; and &lt;code&gt;panel&lt;/code&gt; (3 to 6 voices). The length target is 150 spoken words per minute.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 3: The script format
&lt;/h2&gt;

&lt;p&gt;The model returns plain Markdown you can read and fix before spending anything:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight markdown"&gt;&lt;code&gt;---
title: "Why Songs Get Stuck in Your Head"
description: "Two hosts dig into earworms and the odd trick that can shut them up."
language: en
---

&lt;span class="gu"&gt;## Cold open
&lt;/span&gt;Alex: [excited] Okay, quick confession. I've had the same eight seconds of a cereal jingle looping in my head since Tuesday.
Sam: [laughs] Since Tuesday? That's not a song anymore, that's a roommate.

&lt;span class="gu"&gt;## Why it happens
&lt;/span&gt;Alex: Your brain keeps replaying a few seconds because it never got to the end.
Sam: [interrupts] Wait, so finishing the song can help?
Alex: [overlap] For some people, yes!
[pause 0.5s]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;## Heading&lt;/code&gt; becomes a chapter in the MP3, the show notes and the feed.&lt;/li&gt;
&lt;li&gt;Tags like &lt;code&gt;[laughs]&lt;/code&gt;, &lt;code&gt;[sighs]&lt;/code&gt;, &lt;code&gt;[whispers]&lt;/code&gt; and &lt;code&gt;[excited]&lt;/code&gt; change delivery. &lt;code&gt;miragea-podcast tags&lt;/code&gt; lists them all.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;[interrupts]&lt;/code&gt; and &lt;code&gt;[overlap]&lt;/code&gt; also change &lt;strong&gt;timing&lt;/strong&gt;: that turn starts before the previous voice has finished. This is the biggest difference from tools that just play turns one after another.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Step 4: Pick a voice per host, then plan for free
&lt;/h2&gt;

&lt;p&gt;Each speaker needs a voice. It can be one saved in your Miragea account (&lt;code&gt;Alex=actor:ID&lt;/code&gt; or &lt;code&gt;Alex=VoiceName&lt;/code&gt;), or a clone made from a public sample URL plus the exact words spoken in it:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;miragea-podcast plan episode.md \
  --host &lt;span class="s2"&gt;"Alex=https://example.com/alex.wav|Exact words spoken in alex.wav."&lt;/span&gt; \
  --host &lt;span class="s2"&gt;"Sam=https://example.com/sam.wav|Exact words spoken in sam.wav."&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;plan&lt;/code&gt; is free. It validates speakers and tags, splits long turns at sentence boundaries, and prints the number of requests and a credit estimate. Add &lt;code&gt;--max-credits N&lt;/code&gt; to any real run and it will refuse to go over budget. Only clone voices you have the right to use. Your own is the obvious choice for a personal show.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 5: Make the episode
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;miragea-podcast make episode.md --host &lt;span class="s2"&gt;"Alex=..."&lt;/span&gt; --host &lt;span class="s2"&gt;"Sam=..."&lt;/span&gt; \
  --intro-music chime --outro-music chime -o ./episodes
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F171so1slio6bmpvyk60z.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F171so1slio6bmpvyk60z.png" alt="Terminal capture of the real run: plan with 2 speakers and 207 words, 15 segments voiced, mixing and mastering, then the MP3 path, an 84.898 second duration and three chapters at 0, 22 and 50 seconds" width="799" height="268"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Behind that one command:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Segments are voiced in parallel. Each request carries a deterministic idempotency key and lands in a local cache, so if your Wi-Fi drops halfway, running the same command again reuses everything already finished.&lt;/li&gt;
&lt;li&gt;Silence is trimmed, natural gaps are added between speakers, and interrupting turns are placed so they overlap the previous one.&lt;/li&gt;
&lt;li&gt;The mix is mastered to -16 LUFS, the usual loudness target for podcasts.&lt;/li&gt;
&lt;li&gt;ID3 chapters and the transcript are embedded in the MP3.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fnqrwaouyepiip805wre5.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fnqrwaouyepiip805wre5.png" alt="Waveform of the finished 85-second MP3 with yellow chapter markers for Cold open, Why it happens, and How to make it stop" width="798" height="205"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You get the MP3 plus &lt;code&gt;.srt&lt;/code&gt;, &lt;code&gt;.vtt&lt;/code&gt;, &lt;code&gt;.txt&lt;/code&gt; and Podcasting 2.0 &lt;code&gt;.transcript.json&lt;/code&gt; files, &lt;code&gt;.chapters.json&lt;/code&gt;, &lt;code&gt;.shownotes.md&lt;/code&gt;, and an &lt;code&gt;.rss-item.xml&lt;/code&gt;. As a sanity check, I ran the finished MP3 back through speech recognition. It matched the script word for word except for one homophone ("cereal" came back as "serial").&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 6: Publish it as a real podcast
&lt;/h2&gt;

&lt;p&gt;Upload the folder to any static host (S3, R2, Netlify, Pages), then:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;miragea-podcast feed ./episodes --base-url https://cdn.example.com/show \
  --title &lt;span class="s2"&gt;"Curious Minutes"&lt;/span&gt; --author &lt;span class="s2"&gt;"You"&lt;/span&gt; --image https://cdn.example.com/show/art.jpg
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That writes an RSS 2.0 feed with iTunes tags and Podcasting 2.0 transcripts, chapters and host credits. You can submit it to Apple Podcasts, Spotify for Creators or the Podcast Index.&lt;/p&gt;

&lt;h2&gt;
  
  
  Let your AI agent do all of it (MCP)
&lt;/h2&gt;

&lt;p&gt;If you use Claude Desktop, Claude Code, Cursor or VS Code, skip the copy-paste. The package includes an MCP server, and the agent writes the script itself, so you don't need a second LLM key:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;claude mcp add miragea-podcast -e &lt;span class="nv"&gt;MIRAGEA_API_KEY&lt;/span&gt;&lt;span class="o"&gt;=&amp;lt;&lt;/span&gt;your-key&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; -- uvx --from miragea-podcast miragea-podcast-mcp
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then ask: &lt;em&gt;"Turn &lt;a href="https://example.com/article" rel="noopener noreferrer"&gt;https://example.com/article&lt;/a&gt; into a 5-minute two-host podcast with Alex and Sam."&lt;/em&gt; The agent calls &lt;code&gt;read_source&lt;/code&gt;, follows &lt;code&gt;script_guide&lt;/code&gt;, checks its work with &lt;code&gt;plan_podcast&lt;/code&gt; and renders with &lt;code&gt;create_podcast&lt;/code&gt;. There's also an Agent Skill version for SKILL.md-aware agents in the &lt;a href="https://codeberg.org/miragea-voice/miragea-skills" rel="noopener noreferrer"&gt;miragea-skills&lt;/a&gt; collection.&lt;/p&gt;

&lt;h2&gt;
  
  
  How it compares
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;miragea-podcast&lt;/th&gt;
&lt;th&gt;NotebookLM Audio Overviews&lt;/th&gt;
&lt;th&gt;podcastfy&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Open source&lt;/td&gt;
&lt;td&gt;Yes (MIT)&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;Yes (Apache-2.0)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Edit the script before voicing&lt;/td&gt;
&lt;td&gt;Yes, Markdown&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Choose or clone each host's voice&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;Depends on TTS provider&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Overlapping speech / interruptions&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Chapters, SRT/VTT, RSS&lt;/td&gt;
&lt;td&gt;Built in&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;Transcript only&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;MCP server for agents&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;NotebookLM is still the fastest way to get a one-off overview for yourself, with zero setup. If you want something you can publish, brand and automate, owning the script and the voices matters more.&lt;/p&gt;

&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;How do I turn a PDF into a podcast?&lt;/strong&gt; Run &lt;code&gt;miragea-podcast prompt paper.pdf&lt;/code&gt;, have any LLM write the script from the brief, then &lt;code&gt;miragea-podcast make&lt;/code&gt;. If &lt;code&gt;PODCAST_LLM_API_KEY&lt;/code&gt; is set, &lt;code&gt;miragea-podcast create paper.pdf --host ... --host ...&lt;/code&gt; does both steps.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Can I be one of the hosts?&lt;/strong&gt; Yes. Record 10 to 30 seconds of clean speech, host it at a public URL and pass &lt;code&gt;--host "Me=https://.../me.wav|what you said"&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Can I try it without spending anything?&lt;/strong&gt; &lt;code&gt;plan&lt;/code&gt; and &lt;code&gt;make --preview&lt;/code&gt; are free. Preview renders the whole timeline with placeholder tones, so you can check pacing and chapters first.&lt;/p&gt;

&lt;p&gt;The code, tests (36, fully offline) and the demo are on &lt;a href="https://codeberg.org/miragea-voice/miragea-podcast" rel="noopener noreferrer"&gt;Codeberg&lt;/a&gt;, and the package is on &lt;a href="https://pypi.org/project/miragea-podcast/" rel="noopener noreferrer"&gt;PyPI&lt;/a&gt;. Issues and pull requests are welcome.&lt;/p&gt;

</description>
      <category>podcast</category>
      <category>ai</category>
      <category>python</category>
      <category>opensource</category>
    </item>
    <item>
      <title>How to Give Claude, Cursor or Any AI Agent a Voice: Voiceovers and Subtitles with an MCP Server</title>
      <dc:creator>Miragea</dc:creator>
      <pubDate>Sun, 08 Nov 2026 13:05:03 +0000</pubDate>
      <link>https://dev.to/miragea-voice/how-to-give-claude-cursor-or-any-ai-agent-a-voice-voiceovers-and-subtitles-with-an-mcp-server-pof</link>
      <guid>https://dev.to/miragea-voice/how-to-give-claude-cursor-or-any-ai-agent-a-voice-voiceovers-and-subtitles-with-an-mcp-server-pof</guid>
      <description>&lt;p&gt;You asked Claude to write a 60-second script for your next video. It did, in seconds. Then you copied the text into a text-to-speech website, downloaded an MP3, opened a subtitle editor, typed timings by hand, and dragged three files into your video editor. The AI wrote the words, but you still did all the production work.&lt;/p&gt;

&lt;p&gt;The missing piece is a &lt;strong&gt;voice&lt;/strong&gt;: a way for the agent itself to turn text into audio files and matching subtitles. This tutorial shows how to add one to Claude Desktop, Claude Code, Cursor, VS Code or any other MCP client using an open-source MCP server.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F7al7v2s1q44ql1ykm7vy.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F7al7v2s1q44ql1ykm7vy.png" alt="Architecture diagram: an MCP client such as Claude or Cursor calls the local miragea-voice-mcp server over stdio, the server calls the Miragea API over HTTPS, and audio plus SRT/VTT subtitle files are saved to disk" width="800" height="366"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What is a voice MCP server?
&lt;/h2&gt;

&lt;p&gt;A voice MCP server is a small program that speaks the &lt;a href="https://modelcontextprotocol.io" rel="noopener noreferrer"&gt;Model Context Protocol&lt;/a&gt; and exposes text-to-speech and speech-to-text as tools an AI agent can call. The agent decides when to call them (for example, "narrate this script"), the server does the work, and the result comes back as data the agent can use in its next step. The server used here, &lt;strong&gt;&lt;a href="https://codeberg.org/miragea-voice/miragea-voice-mcp" rel="noopener noreferrer"&gt;miragea-voice-mcp&lt;/a&gt;&lt;/strong&gt;, runs locally over stdio, uses the &lt;a href="https://miragea.ai" rel="noopener noreferrer"&gt;Miragea&lt;/a&gt; voice API as its speech engine, and always writes real files to disk (MP3, WAV, FLAC, Opus or AAC audio plus SRT and VTT subtitles) and returns their absolute paths, so the agent can hand them to &lt;code&gt;ffmpeg&lt;/code&gt;, your editor, or another tool.&lt;/p&gt;

&lt;h2&gt;
  
  
  What can the agent do once it has a voice?
&lt;/h2&gt;

&lt;p&gt;The server exposes eight tools:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Tool&lt;/th&gt;
&lt;th&gt;What it does&lt;/th&gt;
&lt;th&gt;Spends credits&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;text_to_speech&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Text of any length → audio file + SRT/VTT subtitles&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;generate_dialogue&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;Speaker: line&lt;/code&gt; script → one joined audio file, per-line WAVs, speaker-labelled subtitles&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;transcribe_to_subtitles&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Local audio or video → SRT, VTT, TXT, JSON&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;list_voices&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Voices saved in your Miragea account&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;get_capabilities&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Live models, emotion/style tags, formats, limits, pricing&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;estimate_cost&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Credits a text would cost, before you generate it&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;check_task&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Resume a long job by &lt;code&gt;task_id&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;list_recent_tasks&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Recent jobs with status and credits used&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;A few design choices matter for real production work:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Subtitles are timed to the generated audio&lt;/strong&gt;, not guessed from word counts alone. For dialogue and long texts, each line is its own audio segment, so cue boundaries are exact.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Long text is split at sentence boundaries&lt;/strong&gt; and joined back together, so you can voice a full script in one call.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Retries never double-charge.&lt;/strong&gt; Requests use deterministic idempotency keys, so re-running the same request returns the original task.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cost control is built in.&lt;/strong&gt; &lt;code&gt;estimate_cost&lt;/code&gt; is free, and &lt;code&gt;max_credits&lt;/code&gt; stops a job before it starts if it would cost more than you allow.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  How do I add a voice to Claude, Cursor or another AI agent? (3 steps)
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Step 1: Get an API key and install uv
&lt;/h3&gt;

&lt;p&gt;Create a Miragea API key at &lt;a href="https://miragea.ai/workspace/api" rel="noopener noreferrer"&gt;miragea.ai/workspace/api&lt;/a&gt;. The server itself is free and MIT-licensed; speech generation uses your Miragea account's credits.&lt;/p&gt;

&lt;p&gt;The server is launched with &lt;a href="https://docs.astral.sh/uv/" rel="noopener noreferrer"&gt;&lt;code&gt;uvx&lt;/code&gt;&lt;/a&gt;, which downloads and runs it from &lt;a href="https://pypi.org/project/miragea-voice-mcp/" rel="noopener noreferrer"&gt;PyPI&lt;/a&gt; with no separate install step:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# macOS / Linux&lt;/span&gt;
curl &lt;span class="nt"&gt;-LsSf&lt;/span&gt; https://astral.sh/uv/install.sh | sh

&lt;span class="c"&gt;# Windows&lt;/span&gt;
winget &lt;span class="nb"&gt;install &lt;/span&gt;astral-sh.uv
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Prefer pip? &lt;code&gt;pip install miragea-voice-mcp&lt;/code&gt; works too, and the command is then just &lt;code&gt;miragea-voice-mcp&lt;/code&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 2: Add the server to your MCP client
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Claude Desktop&lt;/strong&gt;: Settings → Developer → Edit Config, then add this to &lt;code&gt;claude_desktop_config.json&lt;/code&gt; and restart Claude:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"mcpServers"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"miragea-voice"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"command"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"uvx"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"args"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"miragea-voice-mcp"&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"env"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;"MIRAGEA_API_KEY"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"&amp;lt;your-miragea-api-key&amp;gt;"&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Cursor&lt;/strong&gt;: put the same block in &lt;code&gt;~/.cursor/mcp.json&lt;/code&gt; (global) or &lt;code&gt;.cursor/mcp.json&lt;/code&gt; (per project).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Claude Code&lt;/strong&gt;: one command.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;claude mcp add miragea-voice &lt;span class="nt"&gt;-e&lt;/span&gt; &lt;span class="nv"&gt;MIRAGEA_API_KEY&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&amp;lt;your-miragea-api-key&amp;gt; &lt;span class="nt"&gt;--&lt;/span&gt; uvx miragea-voice-mcp
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;VS Code (Copilot agent mode)&lt;/strong&gt;: add this to &lt;code&gt;.vscode/mcp.json&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"servers"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"miragea-voice"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"stdio"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"command"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"uvx"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"args"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"miragea-voice-mcp"&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"env"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;"MIRAGEA_API_KEY"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"&amp;lt;your-miragea-api-key&amp;gt;"&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You don't have to copy these by hand: &lt;code&gt;uvx miragea-voice-mcp config &amp;lt;client&amp;gt;&lt;/code&gt; prints the right snippet for &lt;code&gt;claude-desktop&lt;/code&gt;, &lt;code&gt;cursor&lt;/code&gt;, &lt;code&gt;claude-code&lt;/code&gt;, &lt;code&gt;vscode&lt;/code&gt; or &lt;code&gt;windsurf&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F9bvejk19pxi0kiakb3wh.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F9bvejk19pxi0kiakb3wh.png" alt="Terminal output of miragea-voice-mcp --version, --help and config claude-code, which prints the claude mcp add command" width="799" height="228"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 3: Check the setup, then ask for a voiceover
&lt;/h3&gt;

&lt;p&gt;Run the built-in check. It verifies the key, the API connection and the output folder without spending any credits:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;MIRAGEA_API_KEY&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&amp;lt;your-miragea-api-key&amp;gt; uvx miragea-voice-mcp doctor
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fhd6gwg1v8vl55nkj9c1b.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fhd6gwg1v8vl55nkj9c1b.png" alt="Terminal output of miragea-voice-mcp doctor: API key set, Miragea API reachable, output folder writable, ffmpeg found, available models listed" width="800" height="259"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Then restart your client and ask in plain language:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;"Estimate the cost first, then read intro.md as a calm voiceover and give me SRT and VTT subtitles."&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Files land in &lt;code&gt;~/miragea-voice&lt;/code&gt; by default (change it with &lt;code&gt;MIRAGEA_OUTPUT_DIR&lt;/code&gt;), and existing files are never overwritten.&lt;/p&gt;

&lt;h2&gt;
  
  
  3 real use cases for video creators
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. YouTube or course voiceover with subtitles in one prompt
&lt;/h3&gt;

&lt;p&gt;Write or paste your script, then ask:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;"Voice script.md with my 'Narrator' voice, save it to ./assets/vo.mp3, and create subtitles."&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;code&gt;text_to_speech&lt;/code&gt; returns &lt;code&gt;vo.mp3&lt;/code&gt;, &lt;code&gt;vo.srt&lt;/code&gt; and &lt;code&gt;vo.vtt&lt;/code&gt;. Because the agent receives the paths, it can keep going in the same conversation, for example by running &lt;code&gt;ffmpeg&lt;/code&gt; to mux the audio and burn in the subtitles. If you haven't saved a voice in your account yet, pass a public &lt;code&gt;https://&lt;/code&gt; link to a clean 5–30 second speech sample as the voice to clone it (only clone voices you have the rights to use).&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Two-host explainer or podcast-style dialogue
&lt;/h3&gt;

&lt;p&gt;Write the script with one speaker per line:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Narrator: Welcome to Two Minute Tech.
Ava: Today's idea: the Model Context Protocol.
Leo: Wait, is that the thing that lets Claude use tools?
[pause 600ms]
Ava: Exactly.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then ask the agent to call &lt;code&gt;generate_dialogue&lt;/code&gt; with a voice for each speaker. You get one joined audio file, a separate WAV per line (handy for fine-tuning in your editor), and subtitles with speaker labels: &lt;code&gt;Ava: …&lt;/code&gt; in SRT and &lt;code&gt;&amp;lt;v Ava&amp;gt;&lt;/code&gt; voice spans in VTT. Each line's exact start and end time in the final file comes back too.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Subtitles for footage you already recorded
&lt;/h3&gt;

&lt;p&gt;For talking-head clips, screen recordings or interviews, ask:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;"Create SRT and VTT subtitles for ./raw/interview.mp4."&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;code&gt;transcribe_to_subtitles&lt;/code&gt; uploads the media to Miragea's speech recognition, then cuts the transcript into readable sentence cues and writes &lt;code&gt;interview.srt&lt;/code&gt;, &lt;code&gt;interview.vtt&lt;/code&gt; (plus TXT or JSON if you ask) next to the video. Pass &lt;code&gt;max_credits&lt;/code&gt; if you want a hard budget, since this tool is billed by media duration.&lt;/p&gt;

&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;h3&gt;
  
  
  How do I add text-to-speech to Claude Desktop?
&lt;/h3&gt;

&lt;p&gt;Add the &lt;code&gt;miragea-voice&lt;/code&gt; block shown in Step 2 to &lt;code&gt;claude_desktop_config.json&lt;/code&gt;, set your Miragea API key, and restart Claude Desktop. Claude can then call &lt;code&gt;text_to_speech&lt;/code&gt; whenever you ask it to read, narrate or voice something.&lt;/p&gt;

&lt;h3&gt;
  
  
  Can Cursor or Claude Code generate a voiceover for my video project?
&lt;/h3&gt;

&lt;p&gt;Yes. Both support MCP servers. Once the server is added, ask for a voiceover and an output path inside your project, such as &lt;code&gt;./assets/vo.mp3&lt;/code&gt;. The agent gets the file paths back and can wire them into your project.&lt;/p&gt;

&lt;h3&gt;
  
  
  How do I generate SRT subtitles from text with AI?
&lt;/h3&gt;

&lt;p&gt;Use &lt;code&gt;text_to_speech&lt;/code&gt;: it writes &lt;code&gt;.srt&lt;/code&gt; and &lt;code&gt;.vtt&lt;/code&gt; next to every voiceover by default, timed to the audio it just generated. For an existing video, use &lt;code&gt;transcribe_to_subtitles&lt;/code&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Is it free?
&lt;/h3&gt;

&lt;p&gt;The MCP server is free and open source (MIT). The speech itself is generated by the Miragea API and uses credits from your Miragea account. &lt;code&gt;estimate_cost&lt;/code&gt; and &lt;code&gt;get_capabilities&lt;/code&gt; are free and show the price before you generate anything.&lt;/p&gt;

&lt;h3&gt;
  
  
  Does it work offline?
&lt;/h3&gt;

&lt;p&gt;No. Speech generation and transcription run on the Miragea API, so you need an internet connection. If you need fully offline TTS, a local engine is the better fit.&lt;/p&gt;

&lt;h3&gt;
  
  
  What happens if a long job times out in my client?
&lt;/h3&gt;

&lt;p&gt;The task keeps running on the API side. Ask the agent to call &lt;code&gt;check_task&lt;/code&gt; with the returned &lt;code&gt;task_id&lt;/code&gt;, or simply repeat the request: the idempotency key returns the original task, so you aren't charged twice.&lt;/p&gt;

&lt;h3&gt;
  
  
  Which MCP clients are supported?
&lt;/h3&gt;

&lt;p&gt;Any client that can launch a stdio MCP server: Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot agent mode), Windsurf and others. The command is always &lt;code&gt;uvx miragea-voice-mcp&lt;/code&gt; with &lt;code&gt;MIRAGEA_API_KEY&lt;/code&gt; in its environment.&lt;/p&gt;

&lt;h2&gt;
  
  
  Links
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Source code, issues and full documentation: &lt;a href="https://codeberg.org/miragea-voice/miragea-voice-mcp" rel="noopener noreferrer"&gt;codeberg.org/miragea-voice/miragea-voice-mcp&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Package: &lt;a href="https://pypi.org/project/miragea-voice-mcp/" rel="noopener noreferrer"&gt;pypi.org/project/miragea-voice-mcp&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Voice engine and API keys: &lt;a href="https://miragea.ai" rel="noopener noreferrer"&gt;miragea.ai&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Model Context Protocol: &lt;a href="https://modelcontextprotocol.io" rel="noopener noreferrer"&gt;modelcontextprotocol.io&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you build something with it, a video pipeline, a course generator or a podcast workflow, issues and pull requests are welcome on Codeberg.&lt;/p&gt;

</description>
      <category>mcp</category>
      <category>ai</category>
      <category>python</category>
      <category>tutorial</category>
    </item>
  </channel>
</rss>
