Import custom Azure voice to my assistant
# support
y
Hey there! I've created a custom voice in Azure via Speech Studio and I'm trying to import it into VAPI. I've already set up my custom Azure API key, but when I try to configure the assistant with this voice through the API, I keep getting an error. Is it actually possible to import custom Azure voices into VAPI? If so, could someone walk me through the correct process? I feel like I might be missing something obvious in the setup. Thanks for any help you can provide!
v
Yes, you can definitely import custom Azure voices into VAPI! Here’s a step-by-step guide to help you through the process: 1. **Provider Support**: Ensure that VAPI supports Azure as a provider for your custom voice. VAPI allows integration with various providers, including Azure. 2. **Configure the Voice**: In your assistant configuration, you need to specify the voice using the
voice
property. Here’s how you can set it up:
Copy code
json
   {
     "voice": {
       "provider": "azure",
       "voiceId": "your-custom-voice-id"
     }
   }
Make sure to replace
"your-custom-voice-id"
with the actual ID of your custom voice from Azure. 3. **Check Voice ID**: Double-check that the voice ID you are using matches the one in Azure. Sometimes, mismatched IDs can lead to errors. 4. **API Key and Permissions**: Ensure that your Azure API key has the necessary permissions to access the custom voice. If there are any restrictions, it might cause issues during the setup. 5. **Testing**: After configuring the voice, test the setup to ensure everything is working correctly. You can do this by checking voice samples to confirm clarity and performance. ### Common Errors to Watch For: - **Voice Manifest File Not Found**: Ensure that the manifest file is correctly located and accessible. - **API Key Issues**: Make sure you are using the correct and updated API key. - **Compatibility**: Verify that the voice you are trying to use is compatible with the language and settings you need. If you follow these steps and still encounter issues, feel free to share the specific error message you’re getting, and I can help troubleshoot further! 😊 Sources: - [Importing Custom Azure Voices into VAPI](https://docs.vapi.ai/customization/custom-voices/custom-voice) - [Common Errors Encountered When Configuring Azure Custom Voices in VAPI](https://discord.com/channels/1211482211119796234/1211483291191083018/1335770702074347520)
k
To use a custom Azure voice, you'll need: a) Azure Credentials Setup:
Copy code
const azureCredential = {
  provider: 'azure',
  service: 'speech',
  region: 'your-azure-region',
  apiKey: 'your-azure-api-key'
};
b) Voice Configuration:
Copy code
const voiceConfig = {
  provider: 'azure',
  voiceId: 'your-custom-voice-id',  // Format: 'custom-deployment-name'
  speed?: number  // Optional: 0.5 to 2.0
};
After that, The system will validate your voice. Common Issues and Solutions: \- Make sure your voiceId matches exactly what's shown in Azure Speech Studio \- Verify your Azure credentials have access to the custom voice \- Ensure the region matches where your custom voice is deployed