Keyur
09/27/2025, 10:20 AMChiranjeet Mishra
09/27/2025, 10:20 AMVapi Support Bot
09/27/2025, 10:21 AMKeyur
09/27/2025, 12:49 PMKeyur
09/27/2025, 12:59 PMVapi Support Bot
09/27/2025, 1:01 PMjson
POST https://api.vapi.ai/provider/11labs/pronunciation-dictionary
Content-Type: application/json
Authorization: Bearer YOUR_API_KEY
{
"name": "Zip Code Fix",
"rules": [
{
"stringToReplace": "90210",
"type": "alias",
"alias": "nine zero two one zero"
}
]
}
After uploading, associate this dictionary with your assistant's voice config. This should correct the mispronunciation for that zip code and can be repeated for others as needed.
See the [pronunciation dictionary docs](https://docs.vapi.ai/assistants/pronunciation-dictionaries) for more details.
Source:
- [Pronunciation dictionaries](https://docs.vapi.ai/assistants/pronunciation-dictionaries)Keyur
09/27/2025, 1:08 PMVapi Support Bot
09/27/2025, 1:09 PMbash
curl -X POST https://api.vapi.ai/provider/11labs/pronunciation-dictionary \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Zip Code Fix",
"rules": [
{
"stringToReplace": "90210",
"type": "alias",
"alias": "nine zero two one zero"
}
]
}'
Replace YOUR_API_KEY with your actual key. After uploading, associate the dictionary with your assistant's voice config as described in the docs.
See [Pronunciation dictionaries](https://docs.vapi.ai/assistants/pronunciation-dictionaries) for more details.
Source:
- [Pronunciation dictionaries](https://docs.vapi.ai/assistants/pronunciation-dictionaries)Keyur
09/27/2025, 1:29 PMVapi Support Bot
09/27/2025, 1:29 PMKeyur
09/27/2025, 1:42 PMVapi Support Bot
09/27/2025, 1:43 PMbash
curl -X POST https://api.vapi.ai/provider/11labs/pronunciation-dictionary \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "name": "Zip Code Fix", "rules": [ { "stringToReplace": "90210", "type": "alias", "alias": "nine zero two one zero" } ] }'
After uploading, associate the dictionary with your assistant’s voice config as described in the docs.
See [Pronunciation dictionaries](https://docs.vapi.ai/assistants/pronunciation-dictionaries) for more details.
Source:
- [Pronunciation dictionaries](https://docs.vapi.ai/assistants/pronunciation-dictionaries)Keyur
09/27/2025, 1:56 PMVapi Support Bot
09/27/2025, 1:57 PMKeyur
09/27/2025, 2:10 PMVapi Support Bot
09/27/2025, 2:11 PMKeyur
09/27/2025, 2:12 PMVapi Support Bot
09/27/2025, 2:14 PMjson
{
"method": "POST",
"url": "https://api.vapi.ai/provider/11labs/pronunciation-dictionary",
"headers": {
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json"
},
"body": {
"name": "Zip Code Fix",
"rules": [
{
"stringToReplace": "90210",
"type": "alias",
"alias": "nine zero two one zero"
}
]
}
}
Replace YOUR_API_KEY with your actual key. Add this node to your n8n workflow to automate the upload process.
See the [Pronunciation dictionaries documentation](https://docs.vapi.ai/assistants/pronunciation-dictionaries) for more details.
Source:
- [Pronunciation dictionaries](https://docs.vapi.ai/assistants/pronunciation-dictionaries)Keyur
09/27/2025, 2:15 PMKeyur
09/27/2025, 2:24 PMVapi Support Bot
09/27/2025, 2:25 PMKeyur
09/27/2025, 2:26 PMVapi Support Bot
09/27/2025, 2:27 PMKeyur
09/27/2025, 2:27 PMVapi Support Bot
09/27/2025, 2:29 PMjson
{
"method": "PATCH",
"url": "https://api.vapi.ai/provider/11labs/pronunciation-dictionary/{dictionaryId}",
"headers": {
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json"
},
"body": {
"rules": [
{
"stringToReplace": "{{zipCode}}",
"type": "alias",
"alias": "{{digitSpacedZipCode}}"
}
]
}
}
Replace {{zipCode}} and {{digitSpacedZipCode}} with the actual values for each call. This ensures the correct pronunciation for the current zip code.
See [Pronunciation dictionaries documentation](https://docs.vapi.ai/assistants/pronunciation-dictionaries) for more details.
Source:
- [Pronunciation dictionaries](https://docs.vapi.ai/assistants/pronunciation-dictionaries)Keyur
09/27/2025, 2:29 PMVapi Support Bot
09/27/2025, 2:31 PMKeyur
09/27/2025, 2:34 PMVapi Support Bot
09/27/2025, 2:36 PMjs
app.post("/update-zip-pronunciation", async (req, res) => {
const { zipCode, digitSpacedZipCode } = req.body;
await fetch("https://api.vapi.ai/provider/11labs/pronunciation-dictionary/{dictionaryId}", {
method: "PATCH",
headers: {
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json"
},
body: JSON.stringify({
rules: [{ stringToReplace: zipCode, type: "alias", alias: digitSpacedZipCode }]
})
});
res.json({ success: true });
});
Trigger this tool from your assistant after capturing the zip code, passing the values as arguments.
See [custom tools guide](https://docs.vapi.ai/tools/custom-tools) for setup details.
Sources:
- [Pronunciation dictionaries](https://docs.vapi.ai/assistants/pronunciation-dictionaries)
- [Custom tools guide](https://docs.vapi.ai/tools/custom-tools)Keyur
09/27/2025, 3:13 PMVapi Support Bot
09/27/2025, 3:14 PM/update-zip-pronunciation endpoint, passing the zip code and its digit-spaced version as JSON:
json
{
"zipCode": "12345",
"digitSpacedZipCode": "one two three four five"
}
This lets your n8n workflow update the pronunciation dictionary in real time by calling your external custom tool API.
See the [custom tools guide](https://docs.vapi.ai/tools/custom-tools) for more details.
Source:
- [Custom tools guide](https://docs.vapi.ai/tools/custom-tools)Keyur
09/27/2025, 3:17 PMVapi Support Bot
09/27/2025, 3:18 PMjson
{
"method": "POST",
"url": "https://your-api.com/update-zip-pronunciation",
"headers": {
"Content-Type": "application/json"
},
"body": {
"zipCode": "12345",
"digitSpacedZipCode": "one two three four five"
}
}
Replace the URL with your actual endpoint, and set the body fields dynamically based on the zip code received during the call.
Source:
- [Custom tools guide](https://docs.vapi.ai/tools/custom-tools)Keyur
09/27/2025, 3:33 PMVapi Support Bot
09/27/2025, 3:34 PMKeyur
09/27/2025, 3:41 PMKeyur
09/27/2025, 3:41 PMVapi Support Bot
09/27/2025, 3:42 PMKeyur
09/27/2025, 3:46 PMKeyur
09/27/2025, 3:47 PMVapi Support Bot
09/27/2025, 3:48 PM/update-zip-pronunciation) that updates the pronunciation dictionary.
2. Configure your assistant to call this tool after capturing the zip code, passing both the zip code and its digit-spaced version.
3. Use an HTTP Request node (if using n8n) to trigger the tool.
Let me know your setup so I can provide detailed steps!
Sources:
- [Pronunciation dictionaries](https://docs.vapi.ai/assistants/pronunciation-dictionaries)
- [Custom tools guide](https://docs.vapi.ai/tools/custom-tools)Keyur
09/27/2025, 3:54 PMVapi Support Bot
09/27/2025, 3:55 PMKeyur
09/27/2025, 6:42 PMVapi Support Bot
09/27/2025, 6:44 PMKeyur
09/27/2025, 6:44 PMVapi Support Bot
09/27/2025, 6:45 PMbash
curl --location --request PATCH 'https://api.vapi.ai/assistant/ASSISTANT_ID' \
--header 'Authorization: Bearer <YOUR_API_KEY>' \
--header 'Content-Type: application/json' \
--data '{
"model": {
"provider": "openai",
"model": "gpt-4o",
"toolIds": ["your-tool-id-here"]
}
}'
Replace ASSISTANT_ID and your-tool-id-here with your actual assistant and tool IDs. This will enable your assistant to call the custom tool (which can trigger your n8n workflow) after capturing the zip code during the call.
Tip: Make sure your tool is set up to receive the zip code and return the correct pronunciation result.
Source: [Custom tools guide](https://docs.vapi.ai/tools/custom-tools)Keyur
09/29/2025, 1:25 PMVapi Support Bot
09/29/2025, 1:27 PMbash
curl -X PATCH 'https://api.vapi.ai/assistant/ASSISTANT_ID' \
-H 'Authorization: Bearer <YOUR_API_KEY>' \
-H 'Content-Type: application/json' \
-d '{
"model": {
"provider": "openai",
"model": "gpt-4o",
"toolIds": ["YOUR_TOOL_ID"]
}
}'
Replace ASSISTANT_ID and YOUR_TOOL_ID with your actual IDs. This setup lets your assistant call your custom tool (which triggers your n8n webhook) after capturing the zip code during the call.
For more details, see the [Custom tools guide](https://docs.vapi.ai/tools/custom-tools).
Source:
- [Custom tools guide](https://docs.vapi.ai/tools/custom-tools)Keyur
09/29/2025, 1:28 PMVapi Support Bot
09/29/2025, 1:30 PMbash
curl -X PATCH 'https://api.vapi.ai/provider/11labs/pronunciation-dictionary/DICTIONARY_ID' \
-H 'Authorization: Bearer <YOUR_API_KEY>' \
-H 'Content-Type: application/json' \
-d '{
"rules": [
{
"stringToReplace": "ZIPCODE",
"type": "alias",
"alias": "Z I P C O D E" // or use phoneme type for more control
}
]
}'
Replace DICTIONARY_ID, ZIPCODE, and <YOUR_API_KEY> with your actual values. This will update the pronunciation dictionary so your Vapi assistant pronounces the zip code correctly on the fly.
For more details, see the [Pronunciation dictionaries documentation](https://docs.vapi.ai/assistants/pronunciation-dictionaries).
Source:
- [Pronunciation dictionaries](https://docs.vapi.ai/assistants/pronunciation-dictionaries)Keyur
09/29/2025, 1:32 PMVapi Support Bot
09/29/2025, 1:34 PMDICTIONARY_ID, list your pronunciation dictionaries with this API call:
bash
curl -X GET 'https://api.vapi.ai/provider/11labs/pronunciation-dictionary' \
-H 'Authorization: Bearer <YOUR_API_KEY>'
Look for the "pronunciationDictionaryId" field in the response—this is the ID you need for updates.
For more details, see the [Pronunciation dictionaries documentation](https://docs.vapi.ai/assistants/pronunciation-dictionaries).
Source:
- [Pronunciation dictionaries](https://docs.vapi.ai/assistants/pronunciation-dictionaries)Keyur
09/29/2025, 1:36 PMVapi Support Bot
09/29/2025, 1:37 PMKeyur
09/29/2025, 1:39 PMVapi Support Bot
09/29/2025, 1:41 PMbash
curl -X POST 'https://api.vapi.ai/provider/11labs/pronunciation-dictionary' \
-H 'Authorization: Bearer <YOUR_API_KEY>' \
-H 'Content-Type: application/json' \
-d '{
"name": "Zip Code Dictionary",
"rules": [
{
"stringToReplace": "90210",
"type": "alias",
"alias": "nine zero two one zero"
}
]
}'
Replace <YOUR_API_KEY> and the rule values as needed. After creation, you can update this dictionary with new zip codes as required.
See: [Pronunciation dictionaries documentation](https://docs.vapi.ai/assistants/pronunciation-dictionaries)
Source:
- [Pronunciation dictionaries](https://docs.vapi.ai/assistants/pronunciation-dictionaries)Keyur
09/29/2025, 1:50 PMKeyur
09/29/2025, 1:51 PMVapi Support Bot
09/29/2025, 1:53 PMKeyur
09/29/2025, 1:57 PMVapi Support Bot
09/29/2025, 1:59 PMpronunciationDictionaryId and versionId, then reference them in your Vapi assistant's voice config like this:
json
"voice": {
"model": "eleven_turbo_v2_5",
"voiceId": "your-voice-id",
"provider": "11labs",
"pronunciationDictionaryLocators": [
{
"pronunciationDictionaryId": "your-elevenlabs-dict-id",
"versionId": "your-elevenlabs-version-id"
}
]
}
Manage all future updates to the dictionary directly in ElevenLabs.
See: [Pronunciation dictionaries documentation](https://docs.vapi.ai/assistants/pronunciation-dictionaries)
Source:
- [Pronunciation dictionaries](https://docs.vapi.ai/assistants/pronunciation-dictionaries)