synthesize_batch
Synthesize multiple texts into MP3 files at once, with control over voice, language, and speech rate. Merge segments into one audio file for continuous playback.
Instructions
Synthesize multiple texts to MP3 files.
Args: texts: List of texts to synthesize. With ElevenLabs eleven_v3, embed audio tags like [tired], [excited], [whisper] in text. voice: Voice name for all texts. Default: provider's default voice (currently matilda for ElevenLabs, joanna for Polly, nova for OpenAI). If language is provided without voice, auto-selects. language: ISO 639-1 language code (e.g. 'de', 'ko'). rate: Speech rate as percentage. Defaults to 90. merge: If true, produce one merged file instead of separate files per text. Defaults to false. pause_ms: Pause between segments in milliseconds when merging. Defaults to 500. auto_play: Open the file(s) in the default audio player after synthesis. Defaults to true. output_dir: Directory for output files. Defaults to TTS_OUTPUT_DIR env var or ~/langlearn-audio/. stability: ElevenLabs voice stability (0.0-1.0). similarity: ElevenLabs voice similarity boost (0.0-1.0). style: ElevenLabs voice style/expressiveness (0.0-1.0). speaker_boost: ElevenLabs speaker boost toggle.
Returns: JSON string with list of results, each containing path, text, voice, and language fields.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rate | No | ||
| merge | No | ||
| style | No | ||
| texts | Yes | ||
| voice | No | ||
| language | No | ||
| pause_ms | No | ||
| auto_play | No | ||
| stability | No | ||
| output_dir | No | ||
| similarity | No | ||
| speaker_boost | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |