In the last 2 weeks I tried to connect a custom tts to a vapi agent. But it just doesn't seem to work properly.
First of all, why do you need to create the custom tts only through an api call??? I think it would be much easier if this option was possible from the UI.
Second, I tried to send api calls like this:
curl -X POST
https://api.vapi.ai/assistant -H "Authorization: Bearer my_api_key" -H "Content-Type: application/json" -d "{\"name\":\"Hebrew Gemini Agent\",\"model\":{\"provider\":\"openai\",\"model\":\"gpt-4o\"},\"voice\":{\"provider\":\"custom-voice\",\"server\":{\"url\":\"my_server_link\",\"secret\":\"mysecretkey\",\"timeoutSeconds\":30}},\"transcriber\":{\"provider\":\"deepgram\",\"model\":\"nova-2\"}}".
Every time I use this, it creates an agent, but when I enter the vapi app, it shows this( the picture)
https://cdn.discordapp.com/attachments/1390784364341624924/1390784364589092965/IMG-20250704-WA0037.jpg?ex=68698460&is=686832e0&hm=11238e18079d74384c62823479991fdf8ad54489b114f0e63efa11b96e2f58d8&