Text to speech
Bulk generation and the CSV format
Generate up to 500 audio files from one CSV and download them as a ZIP. Columns, file naming, SSML in cells, limits and fixes. Pro and Business.
Updated
Bulk generation takes a CSV of lines and returns a ZIP with one audio file per line — ideal for e-learning slides, app prompts, IVR menus and language-learning cards. Available on Pro and Business.
Quick answer: make a CSV with a
textcolumn, and optionallyfilenameandvoice_id. In the studio press Bulk CSV, upload the file and press Start bulk job. Each row becomes its own audio file, using the studio's current voice and settings unless the row names a voice. Download the ZIP when it's done.
Steps
- Prepare a CSV with a
textcolumn (and optionallyfilenameandvoice_id). - In the studio, open Bulk, upload the CSV and choose a default voice and settings.
- Start the batch and watch progress — each row becomes its own job.
- Download the ZIP when the batch completes.
Columns
| Column | Required | Notes |
|---|---|---|
text | Yes | The text for this file. SSML tags are allowed. |
filename | No | Name of the file inside the ZIP, without extension. Defaults to the row number. |
voice_id | No | Overrides the default voice for this row, e.g. bf_emma. |
The first row must be the header. Use UTF-8 encoding — most spreadsheet apps offer "CSV UTF-8" when saving.
Column names aren't case-sensitive, so Text or TEXT work, and columns can be in any order. Extra columns, such as a notes column for your team, are ignored. If the file has no text header at all, the first column is treated as the text and the first row is read as a line to generate, which is rarely what you want.
Example
text,filename,voice_id
"Welcome to module one.",m1-intro,
"In this lesson, we'll cover safety basics.",m1-s01,
"Bienvenido al módulo uno.",m1-intro-es,ef_doraThe Bulk CSV dialog also has a Download a template link that gives you a two-row starter file with the right header.
Commas or semicolons?
Spreadsheet apps set to many European regional settings save CSV files with semicolons instead of commas. You don't need to change that: the separator is detected from the header row, so both of these work.
text;filename;voice_id
"Willkommen, schön, dass Sie da sind.";de-welcome;
"Thanks for calling.";en-welcome;bf_emmaUse one separator throughout the file. Quote any cell that contains the separator you're using.
How are files named in the ZIP?
What you put in filename | File in the ZIP (MP3 format) |
|---|---|
| (empty, row 1) | 001.mp3 |
| (empty, row 27) | 027.mp3 |
m1-intro | m1-intro.mp3 |
m1-intro.mp3 | m1-intro.mp3 (the extension is removed and added back) |
Lesson 1: Safety! | Lesson 1 Safety.mp3 (punctuation is stripped) |
m1-intro used twice | m1-intro.mp3 and m1-intro-2.mp3 |
File names keep letters, digits, spaces, hyphens and underscores, and are cut at 80 characters. Other characters, including full stops and slashes, are removed, so you can't create folders inside the ZIP. The extension always matches the batch's format: .mp3, .wav or .ogg.
For anything an app or LMS will load by name, use lower-case names with hyphens and no spaces, such as ivr-main-menu-01.
Choosing voices and settings
The batch uses the voice and settings you have in the studio when you open Bulk CSV. Set them first:
- Voice: the default for any row with an empty
voice_id. - Format and bitrate: one choice for every file. See Audio formats and bitrates.
- Speed, pitch and volume: applied to every file.
- Background music: if you've added a track, it's mixed under every file.
To use several voices, put a voice ID in each row's voice_id. IDs follow a pattern, such as af_heart for an American English female voice or bm_george for a British English male voice; the full list is in Choosing a voice.
SSML and dictionary in CSV cells
Unlike the studio editor, CSV text is read with tags intact, so you can add pauses and pacing directly. Single quotes in tag attributes save you from doubling double quotes:
text,filename
"Press one for sales.<break time='500ms'/>Press two for support.",ivr-main
"Your code is <say-as interpret-as='characters'>X7K</say-as>.",code-prompt
"<prosody rate='slow'>Please listen carefully, as our options have changed.</prosody>",ivr-noticeIf you prefer double quotes inside a quoted cell, double them: "Ready?<break time=""1s""/>Go.". Tags don't count as characters. The full list of tags is in Pauses, emphasis and pacing. Your pronunciation dictionary applies to every row too.
Worked example: a bilingual flashcard deck
text,filename,voice_id
"apple",card-001-en,bf_emma
"la manzana",card-001-es,ef_dora
"water",card-002-en,bf_emma
"el agua",card-002-es,ef_dora
"Where is the station?",card-003-en,bf_emma
"¿Dónde está la estación?",card-003-es,ef_doraSix rows, six files, named so they sort in pairs. Use voices that match each row's language, and save the file as CSV UTF-8 so accented characters such as "ñ" and "¿" survive.
Worked example: a phone menu (IVR)
Phone systems usually want one short prompt per file, with predictable names. Set the studio voice to the brand voice, choose WAV if the phone platform asks for uncompressed audio, and use a CSV like this:
text,filename
"Thank you for calling Harbour Dental.",ivr-01-greeting
"For appointments, press one.<break time='300ms'/>For billing, press two.<break time='300ms'/>To speak to reception, press zero.",ivr-02-main-menu
"Our opening hours are eight a.m. to six p.m., Monday to Friday.",ivr-03-hours
"Sorry, that wasn't a valid option.",ivr-04-invalid
"Please hold. Your call is important to us.",ivr-05-holdNumbers and times are written as they should be spoken, the prefixes keep files in call-flow order, and short pauses give callers a moment between options. When a prompt changes later, edit that one row, run a one-row CSV, and replace the single file. Some phone platforms need a specific telephone format, such as 8 kHz audio; if yours does, convert the WAV files with your audio tool before uploading them.
How to build the CSV from a longer script
If your lines live in a document, paste them into a spreadsheet, one line per row in column A, and put text in the first cell. Add a filename column with a pattern such as slide-001, slide-002; most spreadsheet apps can fill a series for you if you drag down from the first two cells. Export as CSV UTF-8 and upload.
Limits
| Limit | Value |
|---|---|
| Rows per CSV | Up to 500 (blank lines are skipped) |
| CSV file size | Up to 5 MB |
| Characters per row | Your plan's per-job limit: 200,000 on Pro, 500,000 on Business |
| Characters for the whole batch | Must fit within your remaining monthly allowance |
| Format and settings | One set for the whole batch |
Before anything is generated, every row is checked. If a row has no text, names a voice that doesn't exist or isn't on your plan, or is too long, the batch doesn't start and the error names the row, for example "Row 14 has no text." Row numbers count from the first line after the header.
Tips
- Quote any text that contains commas.
- Keep file names short and unique — duplicates get a numeric suffix.
- Every row counts toward your character quota, and the batch won't start if the total is more than you have left. Check your usage before large batches.
- Settings (format, bitrate, speed) apply to the whole batch.
- Test with a small CSV of three or four rows before running 500.
- Keep one line of audio per row. If a slide needs two paragraphs, it's usually still one file.
While the batch runs
After you press Start bulk job, the dialog shows a progress bar and a count of finished files, plus how many failed. You can close the window: the batch keeps running and each file lands in your Library. When it finishes, you get an email saying how many files were generated, and on Pro and Business a bulk.completed webhook fires if you've registered one. See the API quickstart.
The ZIP holds every file that was generated successfully. If a row fails during generation, the others still complete, and you can fix that line and regenerate it on its own in the studio.
Troubleshooting
Why do accented letters show as strange symbols?
The file wasn't saved as UTF-8. In Excel choose "CSV UTF-8 (Comma delimited)"; in Google Sheets, File, Download, CSV is already UTF-8. Then upload again.
Why does the error say the CSV has no rows?
The file is empty, or every line after the header is blank. Check that you saved the right sheet and that the header includes a text column.
Why is my batch rejected for quota?
The whole batch's characters are checked against what's left of your monthly allowance before it starts. Split the CSV into smaller files, wait for your reset, or move to a bigger plan.
Why is a row read with the wrong voice?
The row's voice_id is empty, so it used the studio voice, or it's the ID of a voice with the same name in another language. ef_dora is Spanish and pf_dora is Brazilian Portuguese.
Why is my file name different from what I typed?
Punctuation other than hyphens and underscores is removed, names are cut at 80 characters, and duplicates get -2, -3 and so on.
Frequently asked questions
Which plans include bulk CSV generation?
Bulk generation is part of Pro and Business. On Free and Starter, the Bulk CSV button opens the upgrade prompt. On Starter you can still generate long scripts in one job, or use multi-speaker mode to combine several voices into a single file.
How many rows can one CSV have?
Up to 500 rows, in a file of up to 5 MB. Blank lines don't count. For larger projects, split your lines across several CSV files and run them one after another, checking your remaining allowance between batches.
Can I use Excel or Google Sheets to make the CSV?
Yes. Put the header in the first row, one line per row, and export as CSV. In Excel, choose CSV UTF-8 so accented and non-Latin characters are kept. Semicolon-separated files, which some regional settings produce, are detected automatically.
Can each row use a different voice?
Yes. Put a voice ID such as bf_emma or em_alex in the voice_id column. Rows with an empty voice_id use the voice selected in the studio. Voices locked to a higher plan aren't available, and the batch won't start if a row names one.
Do cached rows still count against my allowance?
Yes. If a row's text, voice and settings match a file you've already generated, the cached audio is reused, which is faster, but the characters still count toward your monthly allowance like any other job.
Can I give each file a different speed or format?
No. Format, bitrate, speed, pitch and volume are set once for the whole batch. To slow one line, use a prosody rate tag in that row's text. For different formats, run separate batches.
Can I start a bulk batch from the API?
Yes, on Pro and Business. Send the CSV as a multipart upload together with a default voice ID and your settings as JSON. You can poll the batch for progress or register a webhook for the bulk.completed event. The API docs have the full request format.