provider Pronunciation Dictionary POST /v1/pronunciation-dictionaries/{pronunciation_dictionary_id}/add-rules
@utdk/elevenlabs /v1/pronunciation-dictionaries/{pronunciation_dictionary_id}/add-rules
Add Rules To The Pronunciation Dictionary
Add rules to the pronunciation dictionary. If a rule with the same string_to_replace already exists, it will be replaced.
pronunciation_dictionary_id path required
The id of the pronunciation dictionary
string
xi-api-key header
Your API key. This is required by most endpoints to access our API programmatically. You can view your xi-api-key using the 'Profile' tab on the website.

Try it

Authentication
Configure credentials for ElevenLabs API Documentation
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.

Saved automatically to browser storage.

addRules
POST/v1/pronunciation-dictionaries/{pronunciation_dictionary_id}/add-rules
Add rules to the pronunciation dictionary. If a rule with the same string_to_replace already exists, it will be replaced.

Parameters

required

The id of the pronunciation dictionary

Input

required

List of pronunciation rules. Rule can be either: an alias rule: {'string_to_replace': 'a', 'type': 'alias', 'alias': 'b', } or a phoneme rule: {'string_to_replace': 'a', 'type': 'phoneme', 'phoneme': 'b', 'alphabet': 'ipa' }

Enter a gateway URL above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import elevenlabs from '@utdk/elevenlabs';

await elevenlabs.addRules()