Generate Speech
generate_speechSpeak written words out loud in an ElevenLabs voice and save the audio to your library. Give it the words and the voice (a voice name, or a voice id from list_voices). Every take speaks on Eleven v4 or Eleven v4 Turbo. Choose with quality: "fast" (the default, v4 Turbo, quick and cheap) or "best" (v4, the richest, most emotional read), or name one with model: v4 or turbo. v4 holds 10,000 letters a take and turbo has no stated limit. Both take stability and similarity (0 to 1) only. The price is checked before generation and the result includes its billing receipt. The answer carries the time in seconds that every single word starts and ends, which is what you use to cut on the beat, place captions or time a picture to a word. For a sound effect use generate_sound_effect; for two or more people talking in one file use generate_dialogue.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The words to speak, exactly as they should be said. How long one take can be is set by the model you pick. Write numbers and dates the way you want them read out. | |
| model | No | Optional. v4 (richest) or turbo (quick, the default). Leave it out and quality decides. | |
| speed | No | Not used: Eleven v4 has no speed dial, so this is ignored. | |
| style | No | Not used: Eleven v4 has no style dial, so this is ignored. | |
| voice | Yes | Which voice speaks: a voice name such as "Rachel", or a voice id. Call list_voices to see the voices on this account. | |
| quality | No | Optional. "best" picks the richest model, "fast" the quick one. Default fast. | |
| language | No | Optional two-letter language code, for example "es" or "fr", when the words are not in English. | |
| stability | No | Optional, 0 to 1. Lower is more expressive and varied, higher is steadier and more even. | |
| request_id | No | Only reuse a request_id explicitly returned by an enabled durable recovery workflow; an attempt_id or saved-file recovery receipt does not authorize this replay. | |
| similarity | No | Optional, 0 to 1. How closely the read sticks to the original voice. | |
| timestamps | No | Optional, default true. Word-by-word times come back with the audio. Set false if you do not need them. | |
| speaker_boost | No | Not used: Eleven v4 has no speaker boost, so this is ignored. |