provider Pronunciation Dictionary POST /v1/pronunciation-dictionaries/add-from-rules
@utdk/elevenlabs /v1/pronunciation-dictionaries/add-from-rules
Add A Pronunciation Dictionary
Creates a new pronunciation dictionary from provided rules.
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
addFromRules
POST/v1/pronunciation-dictionaries/add-from-rules
Creates a new pronunciation dictionary from provided rules.

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' }

required

The name of the pronunciation dictionary, used for identification only.

A description of the pronunciation dictionary, used for identification only.

Should be one of 'admin', 'editor' or 'viewer'. If not provided, defaults to no access.

Configure credentials above to enable sending.

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

TypeScript

import elevenlabs from '@utdk/elevenlabs';

await elevenlabs.addFromRules()