POST
/
v1
/
pronunciation-dictionaries
/
{pronunciation_dictionary_id}
/
add-rules
Python
from elevenlabs import ElevenLabs
from elevenlabs.pronunciation_dictionary import (
    PronunciationDictionaryRule_Phoneme,
)

client = ElevenLabs(
    api_key="YOUR_API_KEY",
)
client.pronunciation_dictionary.add_rules(
    pronunciation_dictionary_id="21m00Tcm4TlvDq8ikWAM",
    rules=[
        PronunciationDictionaryRule_Phoneme(
            string_to_replace="rules",
            phoneme="rules",
            alphabet="rules",
        )
    ],
)
{
  "id": "<string>",
  "version_id": "<string>"
}

Headers

xi-api-key
string

Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website.

Path Parameters

pronunciation_dictionary_id
string
required

The id of the pronunciation dictionary

Body

application/json

Response

200
application/json

Successful Response

The response is of type object.