Setup
1. Get your KugelAudio API key and a voice ID
- API key: open the KugelAudio dashboard, then go to Settings → API Keys.
- Voice ID: open the KugelAudio dashboard, go to Voices, pick a voice, and copy its numeric ID.
2. Configure your Vapi assistant
- Vapi API (recommended)
- Vapi Dashboard
Use
PATCH /assistant/{id} to update an existing assistant, or include the voice field when creating a new one with POST /assistant:voice_id: the numeric voice ID from Step 1.server.secret: your KugelAudio API key. Vapi sends it as thex-vapi-secretheader on every request, and KugelAudio authenticates it like any API key. This keeps the key out of the URL, which Vapi stores in the assistant config and may log.
How it works
Vapi sends one POST per phrase to/vapi/synthesize:
message.sampleRate must be one of 8000, 16000,
22050, 24000, or 44100; unsupported rates are rejected with 400.
Audio format
Troubleshooting
401: authentication failed
401: authentication failed
Check the key in
server.secret (or the api_key query parameter). For an
eu- key, point the URL at https://api.eu.kugelaudio.com/vapi/synthesize
and use the key without the eu- prefix: only the KugelAudio SDKs strip it
for you.400: unsupported sample rate
400: unsupported sample rate
Vapi’s
message.sampleRate must be 8000, 16000, 22050, 24000 or
44100. Change the assistant’s audio settings in Vapi.The assistant speaks with the wrong voice
The assistant speaks with the wrong voice
The voice comes from the
voice_id query parameter in the server URL, not
from Vapi’s Voice ID field. Check the ID in Voices.Next steps
Voices
Find and pick a voice ID
Voice prompting
Prompt patterns that make an LLM sound good when spoken
Errors
Status codes and error bodies