How do I add voice id manually using api
# general-english
i
How do I add voice id manually using api?
k
Set "voice": { "provider": "your-provider", "voiceId": "your-voice-id" } in the assistant JSON when creating or updating via API.. https://docs.vapi.ai/customization/custom-voices/custom-voice
i
Do I need to be subscribed to Eleven labs?
i was advised not to do that as I will be running 18K++ phone calls so to avoid latency issue I was told to use Vapi's connection as you guys get priority
k
Yes, you need an 11Labs account with an API key to use their voices in Vapi, but a paid subscription isn’t required unless you exceed the free tier limits..
i
How do I add the voice selection using Vapi's eleven labs account?
I wanted to have that drop down option for selection of voice available on dashboard
because we need to get the Voice ID but the dashboard only showing name of the voice not the voice ID @Gilang
k
First add your 11Labs API key in your Vapi dashboard to sync your voices, then go to the “Voices” tab under Assistants, find the voice by name, and view or extract its voiceId often visible in JSON/config view or when selecting the voice, which you can then set in your assistant’s configuration using the "voice": { "provider": "elevenlabs", "voiceId": "your-voice-id" } format.. https://docs.vapi.ai/customization/custom-voices/elevenlabs
i
Thank you. Last question which voice available currently can be used for Thai language?
k
Use Azure voices like th-TH-PremwadeeNeural, th-TH-NiwatNeural, and th-TH-AcharaNeural, which can be selected in the Voice settings of your assistant..
i
Hi @Kings_bigðŸ’Ŧ we have done this and it works perfectly fine when we run call using webcall. However, when we run call using Twilio, we get this error "An error occurred in this call: pipeline-error-eleven-labs-voice-not-found". We are not sending any 11labs info in our request payload (see below - snippet)
Call ID: df4b0770-3b54-46ad-9636-d543bdca711b.
The below is our API payload:
{ "vapiAssistantData": { "id": "df4b0770-3b54-46ad-9636-d543bdca711b", "orgId": "218761d7-4a06-4459-9fdc-d4c0a66490d2", "name": "1-Test", "voice": { "voiceId": "th-TH-AcharaNeural", "provider": "azure" {"firstMessage": "āļŠāļ§āļąāļŠāļ”āļĩāļ„āđˆāļ° āļ”āļīāļ‰āļąāļ™āļ—āļēāļĄāļī āļœāļđāđ‰āļ›āļĢāļ°āļŠāļēāļ™āļ‡āļēāļ™āļāļīāļˆāļāļĢāļĢāļĄ AI āļ‚āļ­āļ‡āļ‡āļēāļ™ XXXX a āđ„āļĄāđˆāļ—āļĢāļēāļšāļ§āđˆāļēāļ„āļļāļ“āļ„āļ·āļ­ {{name}} āđƒāļŠāđˆāđ„āļŦāļĄāļ„āļ°?", "voicemailMessage": "Hey, can you please call back?", "endCallFunctionEnabled": true, "endCallMessage": "GoodBye", "transcriber": { "model": "nova-2", "language": "th-TH", "provider": "deepgram"
Can you please help? @User @User
cc @Gilang
Hi @Shubham Bajaj any help here?
k
To fix your issue, create #1211483291191083018 ticket for follow up..
i
Thank you @Kings_bigðŸ’Ŧ and @Shubham Bajaj we managed to get this working
We mimicked the api call when making web call
k
Glad it fixed