Skip to main content

Respeecher TTS plugin guide

How to use the Respeecher TTS plugin for LiveKit Agents.

On this page

Available inPython

Overview

This plugin allows you to use Respeecher  as a TTS provider for your voice agents. Respeecher provides English and Ukrainian voices. It requires informed consent from voice owners before using their vocal data, and is a founding partner in the Partnership on AI's Responsible Practices for Synthetic Media .

Installation

Install the plugin from PyPI:

uv add "livekit-agents[respeecher]~=1.8"

Authentication

The Respeecher plugin requires an API key from Respeecher .

Set RESPEECHER_API_KEY in your .env file.

Usage

Use Respeecher TTS within an AgentSession or as a standalone speech generator. For example, you can use this TTS in the Voice AI quickstart.

from livekit.plugins import respeecher
session = AgentSession(
tts=respeecher.TTS(
model="/public/tts/en-rt",
voice_id="samantha",
),
# ... llm, stt, etc.
)

Models

Respeecher provides the following models. Each model has a default voice, used when you don't set voice_id.

Model IDLanguageDefault voice
/public/tts/en-rtEnglishsamantha
/public/tts/ua-rtUkrainianolesia-conversation

Voice discovery

Each model has a different set of voices. Use the module-level list_voices helper to discover the voice IDs available for a model:

from livekit.plugins import respeecher
voices = await respeecher.list_voices(model="/public/tts/en-rt")
for voice in voices:
print(voice.id)

Parameters

This section describes some of the available parameters. See the plugin reference for a complete list of all available parameters.

modelstringDefault: /public/tts/en-rt

Respeecher TTS model to use. See the Models table for available options.

voice_idstring

ID of the voice to use. Defaults to a model-specific voice (see the Models table). Use list_voices to discover the IDs available for the chosen model.

voice_settingsVoiceSettings

Optional voice settings. Set sampling_params to control synthesis quality. See the Respeecher sampling params guide  for details.

Additional resources

The following resources provide more information about using Respeecher with LiveKit Agents.