> ## 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.

# Rename a custom voice

> Only the name changes; the voice, its id, quality and consent stay. Answers the voice as **Get a custom voice** does.



## OpenAPI

````yaml /tts/openapi.json patch /v1/voices/{id}
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/voices/{id}:
    patch:
      tags:
        - TTS voices
      summary: Rename a custom voice
      description: >-
        Only the name changes; the voice, its id, quality and consent stay.
        Answers the voice as **Get a custom voice** does.
      operationId: renameVoice
      parameters:
        - name: id
          in: path
          required: true
          description: Custom voice id
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - name
              properties:
                name:
                  type: string
                  description: New name, 1-100 characters.
                  example: Support voice
      responses:
        '200':
          description: The renamed voice
          content:
            application/json:
              example:
                id: 7f0c5b8e-6a51-4c1e-9d43-2a0d6c2e8b11
                object: voice
                type: custom
                name: Support voice
                language: tr
                gender: female
                default: false
                quality:
                  speech_seconds: 17.4
                  reference_seconds: 6.8
                  snr_db: 41
                  high_band_db: -24
                  duration_ratio_max: 1.12
                  windows_tried: 1
                  stt_cer: 0
                created_at: 1793232000
                consent:
                  given: true
                  at: 1793232000
                  reference: contract 2026-114
        '400':
          description: Missing name, more than 100 characters, or not JSON
        '401':
          description: Missing or wrong API key
        '404':
          description: >-
            Custom voice not found (also for our built-in voices, which cannot
            be renamed)
components:
  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.