How we can control accent of the voice agent?
# support
d
We tried to set voice id but could not map the accent of the voice agent. I want to set this dynamically. Is there any document available on how to set this?
v
@dl_amit Certainly! Setting the voice ID and accent dynamically can be done through the Assistant API, which allows you to customize various fields including the voice ID and accent. While I don't have a document to provide, I can guide you through the process. To set the voice ID and accent dynamically, you would typically use an API call where you specify the desired voice and accent in the request. Since you've mentioned that you want to use Play.ht as the provider and Jennifer as the voice, you would set these in the API call. Here's a general example of how you might structure your API request:
Copy code
json
{
  "provider": "playht",
  "voice": "Jennifer",
  "accent": "desired_accent" // Replace with the accent you want to set
  // Other settings can be left as default or customized as needed
}
If you need to know the exact accents available or how to specify them for the Play.ht provider, you should refer to the Play.ht documentation or their API reference, which will have detailed information on the supported voices and accents. If you have any further questions or need assistance with the API call, please let me know!
You can continue this conversation by mentioning me in the message.
d
what are the possible values of accent? we are using 11Labs
@User
@Vapi please respond
v
@dl_amit I apologize for the delay. For 11Labs, the possible values for accents would depend on their specific offerings. Typically, voice service providers like 11Labs will have a range of accents associated with different languages or regions, such as American English, British English, Australian English, etc. To set the accent dynamically using 11Labs, you would need to refer to their API documentation or the list of voices they provide. This documentation should include the available voices and the corresponding accents you can choose from. If you have access to the 11Labs API documentation, you should look for a section that lists the voice models or a voice selection endpoint that provides the details on available accents. If you don't have this information, I would recommend reaching out to 11Labs support directly to obtain the list of accents they support. If you need further assistance or have specific questions about integrating with 11Labs, please let me know, and I'll do my best to help you.
s
@dl_amit You can set the voice ID of your assistant using the Update Assistant API call. In case you want to do it right before the call, you have to use assistant overrides and update the assistant voice ID. You can find more information about this from here: https://docs.vapi.ai/api-reference/phone-numbers/get?playground=%2Fapi-reference%2Fcalls%2Fcreate
Do let me know if you require further help!!
d
Thanks a lot for the response. Is there any details of these voice Id? I would like to hear them before assigning them.
s
You can use Voice-Library on the Dashboard.
7 Views