---
title: "Update Pronunciation Dictionary"
method: PUT
path: "/text-to-speech/pronunciation-dictionary"
tags: ["pronunciationDictionary"]
---

# Update Pronunciation Dictionary

`PUT /text-to-speech/pronunciation-dictionary`

Update an existing pronunciation dictionary by uploading a JSON file. You can add new words, change existing pronunciations, or both — entries not included in the uploaded file remain unchanged.

**Limits:** Max 100 words per dictionary, 1 MB file size.

The response includes the `dictionary_id` and the updated pronunciation mappings for verification.

## Query parameters

- `dict_id` string, required

## Headers

- `api-subscription-key` string, required

## Response `200`

Successful Response

- SarvamModelAPIPronunciationDictionaryUpdateResponse — Response returned after successfully updating a pronunciation dictionary. Includes the full updated pronunciation data for verification.
  - `dictionary_id` string, required — Unique identifier of the updated dictionary.
  - `updated_pronunciations` object, required — The new pronunciation data after the update, organized as `{language_code: {word: pronunciation}}`.

## Other responses

- `400` — Bad Request — Invalid JSON, missing required fields, or bad schema.
- `403` — Forbidden
- `404` — Not Found — Dictionary not found.
- `413` — Payload Too Large — File size exceeds the 1 MB limit.
- `422` — Unprocessable Entity — Word limit exceeded (>100 words per dictionary).
- `429` — Quota Exceeded
- `500` — Internal Server Error

---

[API](https://skmtc.dev/sarvam/apis/endpoints.md) · [All operations](https://skmtc.dev/sarvam/apis/endpoints/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/sarvam/endpoints/revisions/2b7f7955b147/schema)
