Skip to main content
ElevenLabs is a text-to-speech plugin. It synthesizes the LLM’s reply into the agent’s voice, streaming low-latency audio over a WebSocket. It occupies the pipeline’s tts slot.

Setup

Set your ElevenLabs API key in the worker environment. Generate a key from the ElevenLabs dashboard:

Usage

Import the plugin and pass it to the pipeline’s tts slot.
The Python SDK defaults to model eleven_turbo_v2 and voice 21m00Tcm4TlvDq8ikWAM (the “Rachel” voice). Pass model and voice explicitly for consistent results across SDKs.

Voice settings

Fine-tune the voice with the stability, similarity_boost, style, and use_speaker_boost constructor parameters (Python). Each field is also exposed directly in the JavaScript and Go SDKs (stability, similarityBoost/SimilarityBoost, etc.).
Python

Parameters

Constructor parameters for the Python SDK (ElevenLabsTTS). The JavaScript and Go SDKs expose equivalent options where supported, in their idiomatic form (camelCase / TTSOptions struct).

Import paths

The synthesized audio is streamed back to the caller as the final stage of the pipeline.