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.
Both SDKs default 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 voice_settings mapping, which mirrors ElevenLabs’ native voice_settings shape: stability, similarity_boost, style and use_speaker_boost.

Parameters

Constructor parameters for ElevenLabsTTS. The Python and Node JS SDKs share these field names.

Import paths

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