Skip to main content

Spitch TTS plugin guide

How to use the Spitch TTS plugin for LiveKit Agents.

On this page

Available inPython

Overview

This plugin allows you to use Spitch  as a TTS provider for your voice agents.

Installation

Install the plugin from PyPI:

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

Authentication

The Spitch plugin requires a Spitch API key .

Set SPITCH_API_KEY in your .env file.

Usage

Use Spitch 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 spitch
session = AgentSession(
tts=spitch.TTS(
language="en",
voice="lina",
)
# ... llm, stt, etc.
)

Parameters

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

languageLanguageCodeDefault: en

Language code for the generated speech. Spitch has strong support for African languages. To learn more, see Spitch speech generation .

voicestringDefault: lina

Voice to use for synthesis. For supported values, see Spitch voices .

Additional resources

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