Voice a script or narrate a course
Get a voiceover or narration for your script: an AI voiceover, text to speech, a narrated course, one voice across every lesson. Your agent finds voices and sends you previews, voices the script, cleans up a rough recording if you have one, and delivers audio files or places the voice on a timeline.
Use invideo for this when you want the voice to land on the same timeline as your slides or footage, and fix one line later without a new session.
Quickest path
Set up your agent first with invideo for AI agents. Then give it this prompt.
Voice script.txt in invideo. Send me a few calm, clear narrator voices topreview first. After I pick one, voice it in parts, one take perparagraph, and export the narration as a WAV file.In a chat app, you paste the script and listen to the previews in the chat. In a terminal, the agent reads the file and prints the preview links.
What you need
Your agent asks for these.
- The script, or one script per lesson.
- The voice you want, in words: calm, warm, young, British, and so on.
- The language of the script.
- For a clone: short clean clips of the speaker, and their consent.
- What you want back: audio files, or the voice placed on a timeline.
Steps
The agent previews before it spends.
Pick the model
The agent runs
find_modelswith the job in words, such as "narration voice", picks one, and reads its inputs withget_model. A good pick isseed_tts_2_0, which hasspeech_rateandsilence_duration.elevenlabs_text_to_speech.elevenlabs_tts_v4takes emotion tags in the text, andgemini_3_1_flash_ttstakes a second speaker, for a dialogue. Your agent can search for others withfind_models. It sees the model's input schema.Find voices and send previews
The agent calls
search_librarywith the voice library of the model it picked, and a query such as "calm narrator". A voice id works only with its own model.elevenlabs_text_to_speech.elevenlabs_tts_v4takes a voice fromelevenlabs_text_to_speech_voices.seed_tts_2_0takes a voice fromseed_tts_2_0_voices, which returns a list to browse when the query is left out. Each voice has apreview. Your workspace's own cloned voices are listed too. It sees voice ids and preview links, and sends you the links.Voice a test line
- The agent calls
generatewithdry_run: true, one paragraph and your chosenvoice_id, and tells you the price. - For a price of 1 credit or more it waits for your yes. Then it calls
generatewithmax_creditsset to that price and anidempotency_key. It gets a thread URL and, when the result lands, a sequence URL. It reads that URL withread, never with a secondgenerate, and sends you the link.
- The agent calls
Voice the whole script in parts
The agent voices the rest, one take per paragraph or lesson, the same way. It runs a dry run and tells you the price. For a price of 1 credit or more it waits for your yes. Then it calls
generatewithmax_creditsset to that price and anidempotency_keyper take. It sees one sequence URL per take, and reads each withread.Clean a rough recording
If you recorded some lines yourself, the agent runs
mediaaudio.cleanon the recording's sequence URL withdry_run: true, and tells you the price. For a price of 1 credit or more it waits for your yes. Then it runs it withmax_creditsset to that price and anidempotency_key. It sees a new sequence beside your original, which stays.Check the sound
The agent runs
mediaaudio.loudnessandaudio.contenton each take. It looks for long silences and level jumps between takes. It sees the loudness and the speech and silence spans.Deliver
For files, the agent places the takes on
A1in order withinsert_media, each take's sequence URL as theasset. It callsexportwithmodeaudio,audio_formatwav, andtarget_lufsfor your platform. For a video, it places the voice withinsert_medianext to the picture. It sees an export card with statuscompleted.
The terminal version:
invideo gen models <project-url> --query "narration voice"invideo gen model <project-url> --model seed_tts_2_0invideo library search <project-url> \ --library seed_tts_2_0_voices --query "calm narrator"invideo gen run <page-url> --model seed_tts_2_0 --dry-run \ -i prompt=@lesson-01.txt -i voice_id=<voice-id>invideo gen run <page-url> --model seed_tts_2_0 --max-credits <price> \ --idempotency-key lesson-01 -i prompt=@lesson-01.txt \ -i voice_id=<voice-id>invideo status <thread-url> --waitinvideo notebook show <thread-url>invideo media audio.loudness <sequence-url>invideo edit new <project-url> --name "Narration"invideo edit show <edit-url> --jsoninvideo edit change <edit-url> --timeline T1 --token <state_token> \ --operations @takes.jsoninvideo edit export <edit-url> --format video --mode audio \ --audio-format wav --target-lufs -16 --jsoninvideo status <card-url> --waitinvideo notebook show <card-url> --out ./outWhere each value comes from:
<project-url>comes frominvideo project new, and<edit-url>frominvideo edit new.<page-url>is a notebook page of the project, listed byinvideo notebook show <project-url>.<voice-id>comes from theseed_tts_2_0_voicessearch. Forelevenlabs_text_to_speech.elevenlabs_tts_v4, searchelevenlabs_text_to_speech_voicesinstead. A voice id from one library is refused by the other model.<price>is the dry run's.estimated_credits.<thread-url>is theurlthe paidgen runreturns, and<sequence-url>is the take thatnotebook showon it lists.<state_token>comes frominvideo edit show.@takes.jsonreads a bare JSON list ofinsert_mediaops, one per take, onA1.<card-url>is.sequences[0]of the export answer.invideo statuswaits but saves nothing.invideo notebook showsaves the file in./out.
Clone a voice, with consent
Clone a voice only when the speaker agrees, in writing. The agent brings in short clean clips of them with add_media. It runs find_models with "seed audio", and reads the inputs of its pick with get_model. A good pick is seed_audio_1_0.ta2a. Your agent can search for others with find_models. The first clip goes in reference_audio_1, and more clips in reference_audio_2 and reference_audio_3. The prompt tags each clip as @Audio1 to @Audio3.
This is the full MCP generate call, as the dry run. The agent tells you its price. For a price of 1 credit or more it waits for your yes. Then it sends the paid call, the same with max_credits set to the price and an idempotency_key, without dry_run. It returns a thread URL, and the agent reads the clone take's sequence URL with read. <speaker-clip-sequence-url> is the sequence URL add_media returned for a clip.
{ "model": "seed_audio_1_0.ta2a", "dry_run": true, "inputs": { "prompt": "@Audio1, warm and steady: \"Welcome to lesson one.\"", "reference_audio_1": "<speaker-clip-sequence-url>" }}Cost and time
Edits and exports are free. Generation and transcripts cost credits. Paid stock costs a small credit charge, or one of your workspace's iStock licenses. Your agent runs a dry run first and tells you the price before it spends anything.
- Costs credits: every voice take, a clone take, and
audio.clean. - Free: searching voices, the previews, every edit and each export.
audio.loudnessandaudio.content: the dry run shows the price before anything starts.
TTS prices go by the length of the text. A short script takes a few minutes. A full course takes longer, so run it in parts. See Credits for prices.
If something goes wrong
Most problems are a wrong voice id or a text that is too long.
| Symptom | Fix |
|---|---|
get_model or generate refuses the model as not found | Models retire. Run find_models with the job in words, use the best match, and tell the person which model you used. |
generate refuses the voice: "voice_ids are model-specific" | The voice comes from another model's library. Search the library get_model names on the voice input: seed_tts_2_0_voices for seed_tts_2_0. |
invideo status --wait ends and the folder is empty | status does not download. Run invideo notebook show <card-url> --out <dir>. |
generate refuses the text | It is longer than the model takes. Split it into paragraphs. |
| Takes sound different from each other | Use the same model, voice and settings for every take. |
| A word is said wrong | Spell it as it sounds in the prompt, then voice that line again. |
| Long pauses between takes | Trim them on the timeline with trim_clip, or lower silence_duration on seed_tts_2_0. |
timeout on generate | Do not call it again. read the thread or call status. |
| CLI exit 5 | A limit: credits, the --max-credits cap, a quota or the plan. Read the message. Stop and tell the person. |
| Avoid: clone a voice without consent | Instead: use a stock voice, or ask the speaker first. |
Prompts to try
Each prompt is a real variation of this job.
Narrate every lesson in ./course with the same voice. Do a few lessons,send them to me, and wait for my yes before the rest.Make a dialogue from dialogue.txt with gemini_3_1_flash_tts.Speaker A is calm, speaker B is curious.Clean up my own recording, intro.wav, and voice the missing last line in aclone of my voice. I consent to the clone.When to use something else
For a long audiobook with chapter files and a narrator's review, a dedicated tool such as ElevenLabs Studio fits better, and you can bring its files into invideo. A human voice actor still beats TTS for brand voices and emotional reads.