Skip to main content

Groq TTS plugin guide

How to use the Groq TTS plugin for LiveKit Agents.

Available inPython

Overview

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

Installation

Install the plugin from PyPI:

uv add "livekit-agents[groq]~=1.5"

Authentication

The Groq plugin requires a Groq API key .

Set GROQ_API_KEY in your .env file.

Usage

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

from livekit.plugins import groq
session = AgentSession(
tts=groq.TTS(
model="playai-tts",
voice="Arista-PlayAI",
),
# ... stt, llm, vad, turn_handling, etc.
)

Parameters

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

modelTTSModel | stringDefault: playai-tts

Name of the TTS model. For a full list, see Models .

voicestringDefault: Arista-PlayAI

Name of the voice. For a full list, see English  and Arabic  voices.

Additional resources

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