agentOverrides.voice.property voiceId should not exist

I have created an agent , with deepgram asr+gptllm+CUSTOM TTS, as follows using python

from vapi import Vapi

client = Vapi(token=MY_TOKEN) ## private key

with open("assistant_create.json", "r") as f:
    conf = json.load(f)


response = client.assistants.create(**conf)

My configuration is as follows
{
  "name": "Movie Booking Assistant",
  "model": {
    "model": "gpt-4o",
    "messages": [
      {
        "role": "system",
        "content": "# You are a helpful movie ticket booking assistant. \n## Your job is to collect following details from the user:\n- Name of the movie\n- The date of the movie\n- The number of people attending\n- The venue (city or theater name)\n## Instructions\n- Ask one question at a time. Do not guess or assume missing information. Be conversational and friendly.\n- After collecting all the above details, summarize the booking once.\n- If the user says yes to the final summary , then end the chat with \"Thank you for booking with us!\""
      }
    ],
    "provider": "openai"
  },
  "first_message": "Welcome to the movie ticket booking system. How can i help you?",
  "voicemail_message": "Please call back when you're available.",
  "end_call_message": "Goodbye.",
  "transcriber": {
    "model": "nova-2",
    "language": "en",
    "provider": "deepgram"
  },
  "voice" :{
        "provider": "custom-voice",
        "server" : {
            "url": MY_TTS_ENDPOINT,
            "secret": "",
            "timeoutSeconds": 45,
            "headers": {"Content-Type": "application/json", "X-API-Version": "v1"}
        }
        
    }
}

Assistant is created successfully. However , when i am making a call on dashboard by click on "Talk to assistant", conversation is not initiated and I am getting the message that "agentOverrides.voice.property voiceId property should not exist".
and also the agent is always in unpublished state.
Was this page helpful?