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). Choose the model with quality: "fast" (the default, quick and cheap) or "best" (the richest, most emotional read), or name one yourself with model: v4, turbo, v3, conversational, multilingual or flash. How much text one take holds is set by the model you pick: v4 and multilingual 10,000 letters, v3 5,000, flash 40,000, and turbo has no stated limit. You can set stability and similarity (0 to 1) on every model, and style, speed (0.7 to 1.2) and speaker_boost on every model except v4 and v4 turbo, which take stability and similarity only. Billed per 250 characters of text, so a 500-character script costs two units. 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), turbo (quick, the default), v3, conversational, multilingual or flash. Leave it out and quality decides. | |
| speed | No | Optional, 0.7 to 1.2. Under 1 is slower, over 1 is faster. Every model except v4 and v4 turbo. | |
| style | No | Optional, 0 to 1. Extra performance. Every model except v4 and v4 turbo. | |
| 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. | |
| 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 | Optional. Holds the voice closer to the speaker it was made from. Every model except v4 and v4 turbo. |