synthesize_pair
Generate an MP3 that speaks two texts with a pause between them, pairing native and target-language audio for language learning.
Instructions
Synthesize a pair of texts and stitch them into one MP3.
Creates [text1 audio] [pause] [text2 audio]. Use for language learning pairs like "strong" (English) + "stark" (German).
Args: text1: First text (typically English). With ElevenLabs eleven_v3, embed audio tags like [tired], [excited], [whisper] in text. text2: Second text (typically target language). Same audio tag support as text1. voice1: Voice for text1. Defaults to provider's default voice. If lang1 is provided without voice1, auto-selects. voice2: Voice for text2. Defaults to provider's default voice. If lang2 is provided without voice2, auto-selects. lang1: ISO 639-1 language code for text1 (e.g. 'en'). lang2: ISO 639-1 language code for text2 (e.g. 'de'). rate: Speech rate as percentage. Defaults to 90. pause_ms: Pause between the two texts in milliseconds. Defaults to 500. auto_play: Play the audio after synthesis. Defaults to true. output_path: Full path for the output file. output_dir: Directory for output. 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 path, text, voice, and language fields.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rate | No | ||
| lang1 | No | ||
| lang2 | No | ||
| style | No | ||
| text1 | Yes | ||
| text2 | Yes | ||
| voice1 | No | ||
| voice2 | No | ||
| pause_ms | No | ||
| auto_play | No | ||
| stability | No | ||
| output_dir | No | ||
| similarity | No | ||
| output_path | No | ||
| speaker_boost | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |