Eleven Labs Voice Issue

Been trying to get 11labs voice to work, but having a few issues. Created the assistant in the dashboard for testing and sent the calls fine. However, when I try to use it in my own application I get a 400 error everytime.

Here is the assistant:

assistant_template = {
    "backgroundSound": "office",
    "clientMessages": [
        "transcript", "hang", "function-call", "speech-update", "metadata",
        "conversation-update"
    ],
    "dialKeypadFunctionEnabled": False,
    "endCallFunctionEnabled": False,
    "endCallMessage": "Thanks very much for your time!",
    "firstMessage": "",
    "hipaaEnabled": False,
    "llmRequestDelaySeconds": 0.3,
    "maxDurationSeconds": 1800,
    "model": {         
      "functions": [
         {
            "name": "get_availability",
            "description": "This is a function to get the time slots for available appointments. Use this when a prospect has agreed to a meeting or call."
        }
      ],
      "maxTokens": 525,
      "messages": [{
          "content": "",
          "role": "system",
        }],
      "model": "mixtral-8x7b-32768",
      "provider": "groq",
      "temperature": 0.3
    },
    "numWordsToInterruptAssistant": 2,
    "recordingEnabled": True,
    "responseDelaySeconds": 0.9,
    "serverMessages": ["end-of-call-report", "status-update", "hang", "function-call"],
    "serverUrl": SERVER_URL,
    "silenceTimeoutSeconds": 30,
    "transcriber": {
        "keywords": ["Infinilab"],
        "language": "en",
        "model": "nova-2",
        "provider": "deepgram"
    },
    "voice": {
        "provider": "11labs",
        "voiceId": "burt"
    },
  "voicemailDetectionEnabled": True,
}


Other voices work as expected, however the issue seems to only happen with 11labs.

Tried a variety of voices using both preset voice options and 11 labs voice id but still doesn't resolve the issue.
Was this page helpful?