MCP guides · 9 min read

Automate Voice-Overs With AI: Turn a Folder of Scripts Into Audio

Automate voice-overs with an AI agent and Clonylab: set up a folder of scripts, send one request, and get an MP3 for each file. Limits explained.

Yashveer Bharani, founder of ClonylabYashveer BharaniFounder of ClonylabPublished Updated
Clonylab guide: Automate Voice-Overs With AI, with a folder of scripts on the left and finished audio files on the right

The short answer

To automate voice-overs with AI, connect an AI agent to Clonylab’s MCP server and ask it to make a voice-over for every script file in a folder. The agent sends each script, waits for the job and saves the MP3. Your Clonylab tab must stay open for the whole batch. Each request takes up to 10,000 characters. It needs Pro or Team.

Key takeaways

  1. Put one script per file in a folder and ask your AI agent to make a voice-over for each one.
  2. The agent sends each script with generate_speech, waits with get_job and saves the MP3 from get_audio.
  3. Your Clonylab tab makes every voice-over, so keep it open and the computer awake for the whole batch.
  4. One request takes up to 10,000 characters, and a download link works for 30 minutes.
  5. Run a test of two files first. The AI connection is part of Pro and Team, and it is English only.

01How to automate voice-overs with AI

You have a folder of scripts. Maybe it is twenty lesson texts, a stack of product descriptions or a season of short video scripts. You want an audio file for each one. Doing that by hand means opening each script, pasting it, picking the voice, pressing Generate and saving the file. Twenty times.

You can hand that loop to an AI agent instead. The agent reads the folder, sends each script to Clonylab through MCP, waits for each job and saves each MP3 under a clear name. You write one request. The agent repeats the steps.

This guide shows how to set that up, what the agent does at each step, and the limits that decide how big a batch can be. It builds on the text to speech MCP server guide, so connect your AI app first. Then come back here.

Figure 1. The path of one voice-over from Your agent. The line on top is the command going out; the line below is the finished MP3 coming back as a download link.

02What you need before a batch

What a batch run needs
NeedWhy
An AI app that can read files and run commandsClaude Code, Codex CLI, Cursor, Gemini CLI, Windsurf and Cline can. See our AI agents guide
A Clonylab plan with the AI connectionPro or Team. See pricing
An open Clonylab tabEvery voice-over is made in your browser tab, so the tab must stay open for the whole batch
A computer that stays awakeIf the computer sleeps, the tab may stop answering
Scripts in plain text filesOne script per file, each under 10,000 characters
Figure 2. The four steps of a batch. Step 1 happens only once.

03Set up your folder

Keep the layout simple. One script per file, named so the MP3 can take the same name. Plain text or Markdown files both work, because the agent reads them as text.

A folder of scripts
lessons/
  01-welcome.txt
  02-setup.txt
  03-first-project.txt
  04-troubleshooting.txt
  05-next-steps.txt
audio/            <- the agent saves the MP3 files here

If you want different voices for different files, add a small list. A text file with one line per script is enough:

voices.txt (optional)
01-welcome        US female, calm
02-setup          US female, calm
03-first-project  UK male, warm
04-troubleshooting UK male, warm
05-next-steps     US female, calm

Script tags go inside the files. [pause 1s] after a heading, [slow] for a key sentence and [VoiceName] to change voice partway through all work the same way as in the Studio.

04The request that runs the batch

A clear request names the folder, the voice rule, the output folder and what to report. Here are three examples, from simple to careful.

Check that Clonylab is connected. Then, for every file in lessons/, make a voice-over in a calm US female voice and save it as audio/<same name>.mp3. List the files you made when you are done.The basic batch.
Use voices.txt to pick the voice for each lesson. Make the first two now and stop, so I can listen before you do the rest.A small test run first. Good while you are still tuning.
Skip any lesson that already has an MP3 in audio/. If a job fails, note the file name and keep going.Makes a second run safe and tells you what failed.
Figure 3. The loop the agent repeats, once for each file in the folder.

05What happens inside the tab

Your Clonylab tab keeps a queue of jobs. The agent sends a script, the tab starts a job and the job moves through its steps. When it is done, the agent fetches the MP3. The job statuses are the real ones: queued, downloading, generating, done, error and cancelled.

Figure 4. A batch mid-way. The file names are examples, and the picture shows the idea, not a timing.
Figure 5. The life of one speech job. These are the real status words that get_job returns. The bar loops here only to show the idea.

We do not give a speed in minutes per script, because it depends on your device and the length of the script. A short test run of two files tells you how your own computer behaves.

06The limits that decide your batch size

A batch has no fixed maximum, but several limits shape how you run it.

Limits for batch voice-overs
LimitWhat to knowWhat to do
10,000 characters per requestOne generate_speech call takes up to 10,000 charactersSplit longer scripts into parts that end at a natural break
The tab must stay openVoices are made in your open Clonylab tabKeep the tab open and the computer awake until the batch ends
30-minute download linksA get_audio link works for 30 minutesAsk the agent to download each file as soon as it is done
The agent’s own time limitsSome apps cut a tool call after a set timeUse get_job to check a job again. See our Codex guide for one example
History is kept in your browserEvery voice-over is saved to your History in this browserKeep the MP3 files you need. History does not follow you to another device
Figure 6. Who holds what. The audio is made, and kept, in the lane on the right.
Figure 7. Habits that keep a batch running.

07Check the result

When the agent says it is finished, check three things. Count the MP3 files against your scripts. Open two or three and listen, one from the start, one from the middle and one near the end. Then ask the agent for a short report: file name, voice, length and any failures.

The Connector card What your AI can do, a list of five things including making speech, looking through History and reading usage
The same tools are there for the report: History, usage and job status.

You can also ask for a usage summary. usage_summary shows characters, number of voice-overs and audio minutes over the last 7, 30 or 90 days, so you see what the batch used. On Pro and Team the character count is unlimited.

Figure 8. Hand-offs for one voice-over, by our own count. It is not a timing test. With the MCP server your AI does the copy, open, paste, voice and Generate steps.

A short report is the easiest way to see what happened. Ask for it in the same request, so the agent keeps notes as it goes.

A report to ask for after a batch
ColumnWhy you want it
File nameMatches each MP3 to its script
Voice usedCatches a file that got the wrong voice
Length in secondsShows a clip that is far too short or too long
StatusDone, failed or skipped, so you know what to redo

If part of a batch fails, for example because the tab was closed, ask the agent to run only the files that have no MP3 yet. The request that skips existing files makes this safe. Your History in Clonylab also lists every voice-over that finished, so nothing is lost.

08Connect your AI app first

The batch needs the connection from the first guide. If you have not done it yet, switch on the browser permission and keep the tab open.

The Connector card with the switch Allow AI tools to use this browser turned on and the message Connected
Connected means the agent can use your tab. Check this before you start a batch.
The Connector setup examples for Claude Code and Claude Desktop with the address filled in
The Connector screen has ready-made setup lines for several AI apps.

Step-by-step guides: Claude Code, Codex CLI, Cursor and Gemini CLI.

One batch at a time

Run one batch per Clonylab tab. Several agents sending jobs to the same tab make it hard to tell which MP3 belongs to which run.

09Batch or the Studio?

Studio by hand or an AI batch
Studio by handAI batch
Best forA few clips you tune by earMany scripts that need the same treatment
Names and saves files for youNoYes
Retries failed itemsNoYes
Needs the tab openYou are in itYes, for the whole batch
PlanTrial, Pro or TeamPro or Team

For one clip you want to hear and adjust, the Studio is better. For a folder, let the agent do the loop. The text to speech MP3 page explains the files you get.

10Questions and answers

How do I automate voice-overs with AI?

Connect an AI agent to Clonylab’s MCP server, put one script per file in a folder and ask the agent to make a voice-over for each file and save the MP3 files. Keep your Clonylab tab open while it works.

Can I make many voice-overs at once?

Your agent sends the scripts one after another and your Clonylab tab keeps a queue of jobs. There is no fixed batch maximum, but the tab must stay open and each request is limited to 10,000 characters.

What happens if the computer goes to sleep?

The tab may stop answering and the agent will report that the browser tab did not answer in time. Keep the computer awake until the batch ends, then ask the agent to continue.

How long do download links last?

A link from get_audio works for 30 minutes. Ask the agent to download each MP3 as soon as its job is done.

Can I use a different voice for each script?

Yes. Name the voice for each file in your request or in a small list, or use the [VoiceName] tag inside a script to change voice partway through.

Is it free?

The free trial lets you try the Studio and cloning. The AI connection that agents use is part of the Pro and Team plans, which have unlimited characters.

Ready to let your AI make the voice-overs?

Start free with the Studio and cloning, then add Pro when you want the AI connection. English only, no card to start.

Keep reading

Sources and further reading

Last updated . The screenshots come from the Clonylab Connector screen, with the address and the token replaced by the real address and a placeholder. App and tool settings change often: if a step does not match your version, trust the Connector screen in your account.