Issue when creating Cartesia voices via API
# support
o
Hello I am creating squand transient assistants via the API. All goes well when I use voice IDs for the assistants using elevenlabs or rime-ai voices, but with Cartesia voices, if I use the voice ID, I get an error. I can see in the dropdown that Cartesia is the voice model, and the correct voice was chosen, but it still throws an error. I also am unable to change the voice using the UI. What's the workaround? https://cdn.discordapp.com/attachments/1357739846294311186/1357739846981914756/chrome_LgxTzI1RLZ.png?ex=67f14d45&is=67effbc5&hm=e064ea557c4fcebfa856547a833ef1de5c68b1e15f6dc49e2d7c6f8aa79bde52&
v
Hi there! 👋 I understand you're running into issues when trying to use Cartesia voice IDs via the API for your transient assistants, while ElevenLabs and Rime-AI voices work fine. Let me help you with some potential workarounds! Based on the information I've found, here are some troubleshooting steps and workarounds you can try: ### Try this workaround first: One user fixed a similar problem by copying the voice ID from Cartesia and pasting it using the 11labs provider instead of the Cartesia provider [in the API call](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1333785780447084554). This might seem counterintuitive, but it's worth trying! ### Other troubleshooting steps: 1. **Check your API keys and permissions**: - Ensure you're using the correct API key type (private vs. public) - Try making the API call without your Cartesia API key [as suggested here](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1341348892402384896) 2. **Add the voice to your VAPI dashboard**: - Visit https://dashboard.vapi.ai/library/voice - Click the "Add" button to add your Cartesia voice [similar to this solution for 11labs](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1341102814591455353) 3. **Synchronize voices with VAPI**: You can try synchronizing the voice with VAPI using a CURL request:
Copy code
curl --location 'https://api.vapi.ai/voice-library/sync' \
   --header 'Authorization: Bearer user-org-private-key' \
   --header 'Content-Type: application/json' \
   --data '{
       "providers": ["cartesia"]
   }'
[As suggested here](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1335770702074347520) 4. **Verify voice ID format**: - Make sure you're copying the exact voice ID without any extra spaces or characters - Double-check the structure of your API request to ensure the
voice
property is correctly formatted:
Copy code
json
   {
     "voice": {
       "provider": "cartesia",
       "voiceId": "your-voice-id"
     }
   }
5. **Try a different Cartesia voice model**: Some users have reported that trying different voice models by the same provider sometimes helps resolve issues [according to this source](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1339794428688076871). Is there anything specific about these workarounds you'd like me to elaborate on? Sources: - [Discord Thread about Cartesia voice issues](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1333785780447084554) - [Discord Thread about API key troubleshooting](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1341348892402384896) - [Discord Thread about adding voices to VAPI dashboard](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1341102814591455353) - [Discord Thread about synchronizing voices](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1335770702074347520) - [Discord Thread about voice model selection](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1339794428688076871)
o
There might be some kind of bug with Cartesia, when I delete my API key and save, leave the Provider Keys page and come back, the key is still there
By the way your links to discord posts are not working, they are just taking me to the support channel
@Vapi Support Bot what does "synchronize voices" do? I'm only using the cartesia voices provided by Vapi by default
I can also see that in the voice library all the Cartesia voices are showing as "data is not available"
s
Hi, could be related to known issues which vapi is fixing atm see: @Sahil just posted an update at https://discord.com/channels/1211482211119796234/1357671691412836432/1357729583788724365
v
Thanks for the additional information! I understand you're experiencing issues with Cartesia voices and you're specifically asking about what the "synchronize voices" function does when using the default Cartesia voices provided by Vapi. Based on the information available, synchronizing voices is primarily used to ensure that Vapi can correctly access and retrieve voice data from the voice provider. The synchronization process: 1. Helps ensure the correct data is being pulled from the voice provider 2. Is particularly important for user-owned or private voices 3. Typically involves a CURL request that connects to the voice provider's API However, I don't have specific information about whether synchronization is necessary or what effect it has when using the default Cartesia voices that are already provided by Vapi. I apologize about the Discord links not working properly. They were meant to reference specific support threads where similar issues were discussed. Could you tell me if you've tried the first workaround I suggested (using the Cartesia voice ID but with the 11labs provider in your API call)? That seems to have worked for other users with similar issues. Source: - [Discord Thread about synchronizing voices](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1335770702074347520)
o
Ok thanks
@Vapi Support Bot I will try that, so I would replace Cartesia as the provider with 11labs, and use which voice model? An 11labs one or a Cartesia one?
v
Hi there! 👋 I understand you're asking about which voice model to use when implementing the workaround of replacing Cartesia as the provider with 11labs. Based on the information I've found, when switching from Cartesia to 11Labs, there are two approaches: 1. **Standard approach**: Use an 11Labs voice model with the 11Labs provider. This is the generally recommended method as it ensures compatibility between the provider and voice model. 2. **Workaround approach**: Copy the voice ID from Cartesia and paste it using the 11labs provider. This is the specific workaround that was successful for another user with a similar issue to yours. According to a user report I found, they "fixed the problem by copying the voice ID from Cartesia and pasting it using the 11labs provider" [source](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1333785780447084554). This suggests using the Cartesia voice ID (not an 11labs voice model) but changing the provider to 11labs in your configuration. When implementing this workaround, your configuration would look something like:
Copy code
json
{
  "voice": {
    "provider": "11labs",
    "voiceId": "[your-cartesia-voice-id]"
  }
}
Do you need any clarification on how to implement this workaround in your specific setup? Source: - [Discord Thread about Cartesia voice issues](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1333785780447084554)
o
@Vapi Support Bot the API requires specifying a voie model (for example Cartsia has Sonic, Sonic2, and 11labs has Turbo, Turbo2.5 etc)
v
Hi there! 👋 I understand you're asking specifically about which voice model to specify when implementing the workaround with 11labs as the provider and a Cartesia voice ID. Unfortunately, I wasn't able to find specific information about which 11labs voice model (Turbo, Turbo2.5, etc.) should be used when implementing this particular workaround. What I can tell you is that when using the workaround approach (copying the Cartesia voice ID but using 11labs as the provider), you would still need to specify an 11labs voice model in your configuration. Based on general best practices for voice providers, you should select a voice model that's compatible with the 11labs provider. Your configuration would likely look something like:
Copy code
json
{
  "voice": {
    "provider": "11labs",
    "model": "eleven_turbo_v2_5", // or another 11labs model
    "voiceId": "[your-cartesia-voice-id]"
  }
}
You might need to experiment with different 11labs models to see which one works best with the Cartesia voice ID. The "eleven_turbo_v2_5" is mentioned in one configuration example I found, but you could try others like "eleven_turbo" as well. Would you like me to help you troubleshoot further if you try this approach? Sources: - [Discord Thread about Cartesia voice issues](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1333785780447084554) - [Discord Thread about 11labs configuration](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1270786139355090995)
s
Fixed
can you check?
s
not yet ... do i have to wait a specific time before the fix is in effect?
@Arvind Agents working reliably again ... thanks for your effort
c
Hi guys, will they fix this problem with cartesia, becuase my agent now jumped from 9c to 11c per min, and I am using same voice?
s
Thank you for reaching out to us. We've received your message and will get back to you as soon as possible.
Hi, checking if this is resolved/solved for you?
o
Hey so Cartesia voices are not working for me @Shubham Bajaj , doesn't matter if I set them via the API or via the UI (in squd configuration - if I select a Cartesia voice, the "save" button is greyed out)
s
Hey! To help track down this issue, could you share: - The call ID - When exactly this happened (the timestamp) - What response you expected to get - What response you actually got instead This would really help us figure out what went wrong!
o
@Shubham Bajaj I can't share a Call ID, because I can't even select a Cartesia voice, they get greyed out, so I have to pick a different provider.
s
Could you share a Loom video describing you couldn't select a Cartesia voice? This Loom video will help me and my team understand and find out what could have been going wrong for you.