Update Pronunciation Dictionaries

POST
/v1/projects/:project_id/update-pronunciation-dictionaries

Updates the set of pronunciation dictionaries acting on a project. This will automatically mark text within this project as requiring reconverting where the new dictionary would apply or the old one no longer does.

Path parameters

project_idstringRequired

The project_id of the project, you can query GET https://api.elevenlabs.io/v1/projects to list all available projects.

Request

This endpoint expects an object.
pronunciation_dictionary_locatorslist of objectsRequired

A list of pronunciation dictionary locators (pronunciation_dictionary_id, version_id) encoded as a list of JSON strings for pronunciation dictionaries to be applied to the text. A list of json encoded strings is required as adding projects may occur through formData as opposed to jsonBody. To specify multiple dictionaries use multiple —form lines in your curl, such as —form ‘pronunciation_dictionary_locators=”{“pronunciation_dictionary_id”:“Vmd4Zor6fplcA7WrINey”,“version_id”:“hRPaxjlTdR7wFMhV4w0b”}”’ —form ‘pronunciation_dictionary_locators=”{“pronunciation_dictionary_id”:“JzWtcGQMJ6bnlWwyMo7e”,“version_id”:“lbmwxiLu4q6txYxgdZqn”}”‘. Note that multiple dictionaries are not currently supported by our UI which will only show the first.

Response

Successful Response