> ## Documentation Index
> Fetch the complete documentation index at: https://developers.mihu.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Add pronunciations

> One rule, or `{"rules": [...], "replace": false}` for several (`replace: true` makes the list your whole dictionary). A rule for the same words, language and voices replaces the earlier one. Used by every speech request of your account.



## OpenAPI

````yaml /tts/openapi.json post /v1/pronunciations
openapi: 3.0.3
info:
  title: Ses TTS API
  version: 1.0.19
  description: 'Text to speech: streamed audio, seven languages, custom voices.'
servers:
  - url: https://tts.eu.mihu.ai
    description: Europe (EU)
  - url: https://tts.tr.mihu.ai
    description: Türkiye (TR)
security:
  - bearerAuth: []
tags:
  - name: TTS speech
  - name: TTS voices
  - name: TTS service
paths:
  /v1/pronunciations:
    post:
      summary: Add pronunciations
      description: >-
        One rule, or `{"rules": [...], "replace": false}` for several (`replace:
        true` makes the list your whole dictionary). A rule for the same words,
        language and voices replaces the earlier one. Used by every speech
        request of your account.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              oneOf:
                - type: object
                  required:
                    - text
                    - alias
                  properties:
                    text:
                      type: string
                      example: BMW
                      description: The word(s) as written, 1-100 characters
                    alias:
                      type: string
                      example: be me ve
                      description: >-
                        How they are said, in the language's own spelling, 1-200
                        characters
                    language:
                      type: string
                      example: tr
                      description: tr, en, de, fr, es, it, ru, or * for every language
                    case_sensitive:
                      type: boolean
                      default: false
                    voices:
                      type: array
                      items:
                        type: string
                      description: Voice ids; empty = every voice
                - type: object
                  properties:
                    rules:
                      type: array
                      items:
                        type: object
                        required:
                          - text
                          - alias
                        properties:
                          text:
                            type: string
                            example: BMW
                            description: The word(s) as written, 1-100 characters
                          alias:
                            type: string
                            example: be me ve
                            description: >-
                              How they are said, in the language's own spelling,
                              1-200 characters
                          language:
                            type: string
                            example: tr
                            description: >-
                              tr, en, de, fr, es, it, ru, or * for every
                              language
                          case_sensitive:
                            type: boolean
                            default: false
                          voices:
                            type: array
                            items:
                              type: string
                            description: Voice ids; empty = every voice
                    replace:
                      type: boolean
                      default: false
      responses:
        '201':
          description: The rule (or the list of rules) written
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Pronunciation'
        '400':
          description: An invalid field (`error.param`)
components:
  schemas:
    Pronunciation:
      type: object
      properties:
        id:
          type: string
        object:
          type: string
          example: pronunciation
        text:
          type: string
          example: BMW
          description: The word(s) as written, 1-100 characters
        alias:
          type: string
          example: be me ve
          description: How they are said, in the language's own spelling, 1-200 characters
        language:
          type: string
          example: tr
          description: tr, en, de, fr, es, it, ru, or * for every language
        case_sensitive:
          type: boolean
          default: false
        voices:
          type: array
          items:
            type: string
          description: Voice ids; empty = every voice
        created_at:
          type: integer
        updated_at:
          type: integer
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Your API key

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.