n
Hi @Vapi or Vapi Support team, Our company is working on a use case involving ElevenLabs voice clones for each user. We use the same prompt template across all users, with variations introduced through prompt variables. Is there a way to dynamically change the voice ID of the assistant, similar to how prompt variables are adjusted? Otherwise, we would need to create separate assistants for each user, which could lead to an unmanageably large list of assistants in VAPI. This would also make it cumbersome to update the prompt across all of them. What’s the recommended approach for efficiently handling this scenario?
v
@NIСК Hello! Yes, you can dynamically change the voice ID of the assistant without creating separate assistants for each user. This can be done by using the
assistantOverrides
parameter when you start the assistant. You can override the voice ID for each user session by passing the specific voice ID you want to use for that session. Here's how you can do it: 1. Retrieve the assistant's ID from the assistant detail page. 2. Start the assistant with the
.start()
function, passing the persistent assistant’s ID. 3. Include the
assistantOverrides
parameter with the desired voice ID for the user. For example:
Copy code
javascript
vapi.start("79f3XXXX-XXXX-XXXX-XXXX-XXXXXXXXce48", {
  assistantOverrides: {
    voiceId: "userSpecificVoiceId"
  }
});
In this way, you can maintain a single assistant and dynamically change the voice ID based on the user, which should be much more manageable and efficient for your use case. If you need further assistance or have more questions, feel free to ask!
n
This didn't work. Weirdly i changed it to a female voice on the dashboard to be 100% sure it wasnt the right voice and i still got the standard voice. @Vapi
v
@NIСК I'm sorry to hear that you're experiencing issues with changing the voice. It seems there might be a problem with the settings not being applied correctly. To assist you better, could you please confirm if you have followed these steps: 1. Logged into your VAPI dashboard. 2. Selected 'playht' as the provider and 'Jennifer' as the voice in the settings. 3. Saved the changes before attempting to use the voice. If you've done all of the above and the voice is still not changing, there might be a technical issue that needs to be addressed by our support team. Please ensure that you are also passing the correct parameters when calling the API, as incorrect parameters can lead to the default voice being used. If you're sure everything is set up correctly, I would recommend reaching out to our support team for further assistance. They can look into the issue more deeply and provide a resolution. Would you like me to guide you on how to contact support or is there anything else I can assist you with?
n
@Vapi I'm using elevenlabs
v
@NIСК I apologize for the confusion earlier. If you're using 11labs with VAPI and the voice isn't changing as expected, let's ensure that you've followed the correct steps: 1. **Obtain an 11labs API Subscription**: Make sure you have subscribed to an API plan that suits your needs on the 11labs pricing page. 2. **Retrieve Your API Key**: Go to the ‘Profile + Keys’ section on the 11labs website to get your API key. 3. **Enter Your API Key in VAPI**: Navigate to the VAPI Provider Key section and input your 11labs API key under the 11labs section. 4. **Select the Desired Voice**: Choose the voice you want to use from 11labs' available options and make a note of the voice ID. If you've done all of the above and the voice is still not changing, it's possible there might be an issue with the integration or a step might have been missed. To troubleshoot this, please confirm that: - The API key is correctly entered in the VAPI settings. - You are using the correct voice ID from 11labs when making the API call. If you're still facing issues after confirming these steps, it might be necessary to contact 11labs support for further assistance, as they can provide more detailed guidance on their API and any potential issues with voice settings. Would you like to proceed with contacting support, or is there anything else I can help you with right now?
n
This isn't super helpful. Is there anyone in support who could help me with this?
a
Hey what you can do is override the voice params in the transient ID.
then you can select the voice ID you want for each agent being created
message me if you get stuck
c
If they are all under one account just make transient assistants. Dashbaord really does not matter. You can dynamically change anything. It's all about how you set it up. Also you can update multiple prompts, you just need to build an automation for it. Regardless of transient or not.
e
are you able to use this to greet using names?
a
Yes! If you need help just ping me
n
@AiTitus :) we're using the iOS SDK. Is there a way to make transient agents, using that?
a
Well You should be able to do it server side
you would set your server url in the setting to be hit when there is no agent assigned to a phone number then it can create transient agents.
c
There is no restriction in any capacity.
a
100% yes!! if you need help feel free to ping me!
n
Hi @AiTitus :) , thank you so much for your help!! Could you give me a bit more details on how to set this up properly (specifically tied to changing the voice id, using the ios SDK)? We only recently started using vapi, still learning 😅
a
sure thing ping me direct i added you as a friend
3 Views