> ## Documentation Index
> Fetch the complete documentation index at: https://www.voiceflow.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Patch pronunciation dictionary

> Edits single entries of the voice pronunciation dictionary, a list of written words and how the voice says them. `set` adds words or replaces the entry for a word already stored, `remove` deletes every entry for a word, and words match ignoring letter case.



## OpenAPI

````yaml /specs-prettified/realtime/openapi.stable.json patch /v1/stable/agent/pronunciation
openapi: 3.0.0
info:
  title: Realtime
  description: Realtime gateway API service
  version: 1.0.0
  contact: {}
servers:
  - url: https://realtime-api.voiceflow.com
security: []
tags: []
paths:
  /v1/stable/agent/pronunciation:
    patch:
      tags:
        - Agent
      summary: Patch pronunciation dictionary
      description: Edits single entries of the voice pronunciation dictionary, a list
        of written words and how the voice says them. `set` adds words or
        replaces the entry for a word already stored, `remove` deletes every
        entry for a word, and words match ignoring letter case.
      operationId: StableAgentController_patchPronunciation
      parameters:
        - name: projectID
          required: true
          in: query
          schema:
            type: string
            description: The ID of the project to operate on.
        - name: environmentAlias
          required: true
          in: query
          schema:
            type: string
            description: The alias of the environment to operate on (e.g. `main`).
      requestBody:
        required: true
        content:
          application/json:
            schema:
              allOf:
                - $ref: "#/components/schemas/StableAgentPronunciationPatchRequest"
      responses:
        "200":
          description: Returns how many entries were added, changed and removed, the words
            in `remove` the dictionary did not have, and how many entries the
            dictionary holds now.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/StableAgentPronunciationPatchResponse"
          x-vf-doc:
            description: Returns how many entries were added, changed and removed, the words
              in `remove` the dictionary did not have, and how many entries the
              dictionary holds now.
      security:
        - token: []
components:
  schemas:
    StableAgentPronunciationPatchRequest:
      type: object
      properties:
        set:
          description: Words to add, or to change when the dictionary already has them.
            `from` is the written word and `to` is how the voice says it; an
            empty `to` makes the voice skip the word.
          minItems: 1
          maxItems: 500
          type: array
          items:
            $ref: "#/components/schemas/PronunciationDictionaryEntry"
        remove:
          description: Written words whose entries to delete.
          minItems: 1
          maxItems: 500
          type: array
          items:
            type: string
            minLength: 1
            maxLength: 128
      additionalProperties: false
    PronunciationDictionaryEntry:
      type: object
      properties:
        from:
          type: string
          minLength: 1
          maxLength: 128
        to:
          type: string
          maxLength: 128
      required:
        - from
        - to
    StableAgentPronunciationPatchResponse:
      type: object
      properties:
        message:
          type: string
          description: A human-readable message confirming the update.
        added:
          type: integer
          minimum: -9007199254740991
          maximum: 9007199254740991
          description: How many new words the dictionary gained.
        replaced:
          type: integer
          minimum: -9007199254740991
          maximum: 9007199254740991
          description: How many stored words got the pronunciation this call sent.
        removed:
          type: integer
          minimum: -9007199254740991
          maximum: 9007199254740991
          description: How many entries were deleted.
        notFound:
          type: array
          items:
            type: string
          description: Words in `remove` the dictionary did not have. Nothing was deleted
            for them.
        totalEntries:
          type: integer
          minimum: -9007199254740991
          maximum: 9007199254740991
          description: How many entries the dictionary holds now.
      required:
        - message
        - added
        - replaced
        - removed
        - notFound
        - totalEntries
  securitySchemes:
    token:
      scheme: bearer
      bearerFormat: JWT
      type: http
      description: Voiceflow bearer token
````
