Use an elbic voice on a Vapi call.
Set up a custom voice in an existing Vapi assistant with your elbic key and voice ID. Make a test call from the assistant before switching traffic.
Set up your first test.
- Set the custom endpoint
- Use the TTS URL from the guide in the assistant’s custom voice configuration. Set voice_id in the URL and the key in the secret field.
- Match your call audio
- Vapi requests a sample rate and receives PCM audio. Check that the assistant’s playback sounds correct on the line you intend to use.
- Evaluate a real prompt
- Test a greeting and a short confirmation before routing more calls. Use the same script if you compare voices.
Code
Make a Vapi test call.
Send this with PATCH /assistant/{id}, or include it when you create the assistant with POST /assistant. Replace the voice ID and the API key with your own.
{
"voice": {
"provider": "custom-voice",
"server": {
"url": "https://api.kugelaudio.com/vapi/synthesize?voice_id=YOUR_VOICE_ID",
"secret": "YOUR_KUGELAUDIO_API_KEY",
"timeoutSeconds": 30
}
}
}Copied from the documentation at docs.kugelaudio.com/integrations/vapi. Read the full guide
Integrations
Other integrations
LiveKit Agents
Official TTS plugin for LiveKit Agents in Python and TypeScript.
View integrationPipecat
Official TTS service for Pipecat voice pipelines in Python.
View integrationCognigy
Custom speech vendor endpoint for Cognigy Voice Gateway.
View integrationMCP server
Connect Claude, Cursor or any MCP client and generate speech from a chat.
View integration
Before your first test.
Do I need my own TTS proxy?
Use the documented direct endpoint. Vapi sends your API key in its secret header.
What changes when I try another voice?
Change the voice ID in your assistant configuration, then verify it with a test call.
Make a Vapi test call.
Follow the documented setup, then listen to the output with a script from your application.