For AI agents: a documentation index is available at /llms.txt. Markdown versions of all pages can be requested by appending `.md` to the URL, or by setting the `Accept` header to `text/markdown`.
Skip to main content
Integrations and SDKsLiveKit

LiveKit text to speech

Use Speechmatics text-to-speech voices in your LiveKit voice agents.

Give your LiveKit voice agent natural, expressive speech with Speechmatics TTS.

Installation

uv add "livekit-agents[speechmatics]~=1.4"

Usage

from livekit.agents import AgentSession
from livekit.plugins import speechmatics

session = AgentSession(
tts=speechmatics.TTS(),
# ... stt, llm, etc.
)

Configuration

ParameterTypeDefaultDescription
voicestring"sarah"Voice model to use
api_keystringenv varSpeechmatics API key (defaults to SPEECHMATICS_API_KEY)

For available voices and detailed TTS options, see the Text to speech quickstart.

Next steps