Use Giggy TTS in LiveKit Agents
LiveKit Agents can synthesize speech through Giggy using LiveKit's OpenAI TTS plugin pointed at https://api.giggy.ai/v1 with model="giggyspeech", a Giggy voice UUID and raw PCM output.
Before you start
- Create a Giggy API key (giggy_sk_) and export GIGGY_API_KEY.
- Fetch a Giggy voice UUID from GET /v1/voices (or GET /v1/my-voices for custom cloned/designed voices).
- Confirm you are using LiveKit's OpenAI TTS plugin in your LiveKit Agents worker.
Create it in Giggy
- Initialize LiveKit's OpenAI TTS plugin with base_url="https://api.giggy.ai/v1" and Authorization Bearer GIGGY_API_KEY.
- Set model="giggyspeech" and voice to a valid Giggy voice UUID.
- Request PCM output at a supported sample rate so LiveKit streams audio frames progressively without MP3 buffering.
- Disable automatic synthesis retries for live streaming calls in your LiveKit agent options.
- Test barge-in and interruption handling in a LiveKit room before production traffic.
Improve the result
- Choose a conversational voice from the Voice Library rated for clear turn-taking.
- Monitor credit usage and monthly budgets via GET /v1/credits/balance or Speech API > Usage & Billing.
Examples
- LiveKit OpenAI TTS config: base_url="https://api.giggy.ai/v1", api_key=os.environ["GIGGY_API_KEY"], model="giggyspeech", voice="<GIGGY_VOICE_UUID>", response_format="pcm".
- Monthly TTS savings at 5M characters: $25–$50 on Giggy Streaming vs $190 on Cartesia Sonic-3.6 or $200 on ElevenLabs Flash v2.5.
Common mistakes
- Leaving automatic synthesis retries enabled on streaming calls, which can cause duplicate audio playback during brief hiccups.
- Passing OpenAI voice names ("alloy", "shimmer") instead of a Giggy voice UUID.
- Expecting a native LiveKit upstream provider listing instead of using the OpenAI-compatible path.
Related guides
- How to create text to speech
- How to create a designed voice
- How to create a voice clone
- How Generation History works
- How My Voices and Voice Library work
- Migrate from OpenAI tts-1 before shutdown
- Twilio Media Streams with Giggy WebSocket STT
- Build a Pipecat voice agent with Giggy
- Configure Giggy as a Jambonz custom STT provider
- Connect the Giggy MCP server to Claude Code, Cursor and Codex
- Automate voiceovers and transcription in n8n