# Generate Speech with ElevenLabs

Source: https://openflow.run/en/templates/generate-elevenlabs-speech-from-webhook/
Content language: en
Template revision: 4ae2934012d3865e7d296909b9a06728464f1991

Media

Generate speech from text and return the audio bytes.

[Use in Open Flow](https://console.openflow.run/flows?importUrl=https%3A%2F%2Fraw.githubusercontent.com%2Foomol-lab%2Fawesome-workflow-templates%2F4ae2934012d3865e7d296909b9a06728464f1991%2Fworkflows%2Fgenerate-elevenlabs-speech-from-webhook%2Ftemplates%2Fgenerate-elevenlabs-speech-from-webhook.openflow.json)

*   [Open Flow JSON](https://github.com/oomol-lab/awesome-workflow-templates/blob/4ae2934012d3865e7d296909b9a06728464f1991/workflows/generate-elevenlabs-speech-from-webhook/templates/generate-elevenlabs-speech-from-webhook.openflow.json)
*   [n8n JSON](https://github.com/oomol-lab/awesome-workflow-templates/blob/4ae2934012d3865e7d296909b9a06728464f1991/workflows/generate-elevenlabs-speech-from-webhook/templates/generate-elevenlabs-speech-from-webhook.n8n.json)

![Generate Speech with ElevenLabs workflow in Open Flow](https://openflow.run/template-previews/generate-elevenlabs-speech-from-webhook/light.webp)

Generate speech from text and return the audio bytes.

## Setup

Configure an ElevenLabs connection with access to eleven\_multilingual\_v2 and the selected voice. Restrict webhook access; requests use your ElevenLabs account.

## Use

POST JSON with voice\_id, text and a unique request\_id. Open Flow transit URLs are public to anyone with the link; use only content suitable for that exposure. Text is sent to ElevenLabs. The model supports up to 10,000 characters per request.

Open Flow returns the same recorded transit file for the same ID and inputs after success while that URL remains valid. Prevent overlapping requests with the same ID.

In n8n

In n8n configure Header Auth with xi-api-key, choose n8n or Open Flow mode and set its webhook URL. Configure a Data Table with item\_key and status columns and enable persistent State for Open Flow. The n8n endpoint returns MP3 audio bytes. Open Flow synthesizes the audio and n8n downloads its transit file for the response. A pending generation may have succeeded; inspect ElevenLabs and the pending State or Data Table row before retrying.

Inspiration & credits

Original workflow by The n8Ninja.

Adapted from [Generate Text-to-Speech Using Elevenlabs via API](https://github.com/enescingoz/awesome-n8n-templates/blob/827110332c21cbe000ab13f6d292d5adb1f1f8db/OpenAI_and_LLMs/Generate%20Text-to-Speech%20Using%20Elevenlabs%20via%20API.json) in [enescingoz/awesome-n8n-templates](https://github.com/enescingoz/awesome-n8n-templates).

Source collection notice: © 2024–2026 Enes Cingoz, [CC BY 4.0](https://github.com/enescingoz/awesome-n8n-templates/blob/827110332c21cbe000ab13f6d292d5adb1f1f8db/LICENSE). The source export does not identify a separate template author or license. See [repository licensing](https://github.com/oomol-lab/awesome-workflow-templates/blob/4ae2934012d3865e7d296909b9a06728464f1991/README.md#licensing) for the scope of OOMOL contributions and third-party material.

## Apps used

*   [**ElevenLabs**`elevenlabs`](https://openflow.run/en/integrations/elevenlabs/)

## What you’ll need

*   ElevenLabs connection
*   Persistent State

*   elevenlabs
*   speech
*   audio
*   webhook

[View on GitHub](https://github.com/oomol-lab/awesome-workflow-templates/blob/4ae2934012d3865e7d296909b9a06728464f1991/workflows/generate-elevenlabs-speech-from-webhook/README.md)
