PlayHT voices not syncing
# support
a
I’m encountering an issue when syncing voices from PlayHT to VAPI, specifically voices powered by the "PlayDialog" engine, such as "Deedee" and "Nia." Although I have my API key synced with VAPI, these voices do not sync properly. To verify access to the voices, I use the native GET method provided by PlayHT to check my API key permissions. Below is the response I get when running the GET request to list voices from my PlayHT account:
Copy code
{
  "id": "s3://voice-cloning-zero-shot/831bd330-85c6-4333-b2b4-10c476ea3491/original/manifest.json",
  "name": "Nia",
  "sample": "https://peregrine-samples.s3.us-east-1.amazonaws.com/parrot-samples/Nia_Sample.wav",
  "accent": "american",
  "age": null,
  "gender": "female",
  "language": "English",
  "language_code": "en-US",
  "loudness": null,
  "style": null,
  "tempo": null,
  "texture": null,
  "is_cloned": false,
  "voice_engine": "PlayDialog"
}
It appears that any voice using the "PlayDialog" engine cannot sync with VAPI. I have confirmed that the API key is correctly synced with VAPI, but this issue persists. Do you have any suggestions or solutions to resolve this?
v
Try adding the language parameter when syncing your PlayDialog voices. According to the documentation, the language parameter is specifically required when
voice_engine
is set to `PlayDialog`:
Copy code
curl --location 'https://api.vapi.ai/voice-library/sync' \
--header 'Authorization: Bearer your-api-key' \
--header 'Content-Type: application/json' \
--data '{
    "providers": ["playht"],
    "language": "English"
}'
The language parameter expects the actual language name and is critical for PlayDialog engines to work properly. Source: - [Discord discussion about PlayHT language parameters](https://discord.com/channels/1211482211119796234/1337895656307556412)
a
I got this error: { "message": [ "property language should not exist" ], "error": "Bad Request", "statusCode": 400 }
I figured it out. The issue was that it only works when you make the API call directly, not through the VAPI interface. Once I set the language in the API call, it worked.
Copy code
"assistantOverrides": {
    "voice": {
        "provider": "playht",
        "voiceId": "your-voice-id-here",  // Replace with your actual voice ID
        "language": "english",
        "model": "PlayDialog"
    }
}
v
Message marked as helpful by @Ace! 🎉
k
checking if this is resolved/solved for you?
a
Yes
j
Having the exact same issue Ace. Did you find any way to update any assistant using a PlayHT dialog voice? I just get this error every time:
Copy code
{
    "message": "Voice "voiceid here" not found for provider playht",
    "error": "Bad Request",
    "statusCode": 400
}
c
This ticket has been marked as solved, and as a result, you will no longer receive any further responses. Kindly create a new support ticket to escalate your inquiry.