text_to_speech
Convert text to speech and save audio to a file. Customize voice, model, and output format for realistic speech synthesis.
Instructions
Convert text to speech and save the audio to a file.
Args: text: The text to synthesize. voice_id: ElevenLabs voice id (defaults to the configured default voice). model_id: TTS model id (default "eleven_multilingual_v2"). Other options include "eleven_flash_v2_5" (fast/cheap) and "eleven_turbo_v2_5". output_format: e.g. "mp3_44100_128", "mp3_44100_192", "pcm_44100", "wav_44100". language_code: ISO code to enforce a language (supported by some models). stability / similarity_boost / style / speed: voice setting overrides (0..1; speed ~0.7..1.2). use_speaker_boost: bool. seed: deterministic generation seed. output_filename: optional file name (extension inferred if omitted).
Returns the absolute path of the saved audio file.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seed | No | ||
| text | Yes | ||
| speed | No | ||
| style | No | ||
| model_id | No | ||
| voice_id | No | ||
| stability | No | ||
| language_code | No | ||
| output_format | No | mp3_44100_128 | |
| output_filename | No | ||
| similarity_boost | No | ||
| use_speaker_boost | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |