Skip to main content

Spitch STT plugin guide

How to use the Spitch STT plugin for LiveKit Agents.

Available in
Python

Overview

This plugin allows you to use Spitch as an STT provider for your voice agents.

Quick reference

This section provides a quick reference for the Spitch STT plugin. For more information, see Additional resources.

Installation

Install the plugin from PyPI:

pip install "livekit-agents[spitch]~=1.2"

Authentication

The Spitch plugin requires a Spitch API key.

Set SPITCH_API_KEY in your .env file.

Usage

Use Spitch STT in an AgentSession or as a standalone transcription service. For example, you can use this STT in the Voice AI quickstart.

from livekit.plugins import spitch
session = AgentSession(
stt=spitch.STT(
language="en",
),
# ... llm, tts, etc.
)

Parameters

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

languagestringOptionalDefault: en

Language short code of the input speech. For supported values, see Spitch languages.

Additional resources

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