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

# Create a voice clone from a voice design

> Creates a new voice clone by capturing the voice identity of an existing voice design. The clone can then be used for text-to-speech synthesis.



## OpenAPI

````yaml /openapi/voice-clones.yml post /voice_clones
openapi: 3.1.0
info:
  title: Voice Clones API
  version: 2.0.0
  description: >-
    Capture and manage voice identities as clones for use in text-to-speech
    synthesis.
  contact:
    email: support@telnyx.com
servers:
  - url: https://api.telnyx.com/v2
security:
  - bearerAuth: []
tags:
  - name: Voice Clones
    description: >-
      Capture and manage voice identities as clones for use in text-to-speech
      synthesis.
paths:
  /voice_clones:
    post:
      tags:
        - Voice Clones
      summary: Create a voice clone from a voice design
      description: >-
        Creates a new voice clone by capturing the voice identity of an existing
        voice design. The clone can then be used for text-to-speech synthesis.
      operationId: createVoiceClone
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/VoiceCloneRequest'
      responses:
        '201':
          description: Voice clone created successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VoiceCloneResponse'
        '401':
          description: Unauthorized — missing or invalid bearer token.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/voice-designs_ErrorResponse'
        '404':
          description: Voice design not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/voice-designs_ErrorResponse'
        '422':
          description: Unprocessable entity — validation error in the request body.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/voice-designs_ErrorResponse'
        '502':
          description: Bad gateway — upstream voice cloning service is unavailable.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/voice-designs_ErrorResponse'
      x-codeSamples:
        - lang: JavaScript
          source: |-
            import Telnyx from 'telnyx';

            const client = new Telnyx({
              apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
            });

            const voiceClone = await client.voiceClones.create({
              gender: 'male',
              language: 'en',
              name: 'clone-narrator',
              voice_design_id: '550e8400-e29b-41d4-a716-446655440000',
            });

            console.log(voiceClone.data);
        - lang: Python
          source: |-
            import os
            from telnyx import Telnyx

            client = Telnyx(
                api_key=os.environ.get("TELNYX_API_KEY"),  # This is the default and can be omitted
            )
            voice_clone = client.voice_clones.create(
                gender="male",
                language="en",
                name="clone-narrator",
                voice_design_id="550e8400-e29b-41d4-a716-446655440000",
            )
            print(voice_clone.data)
        - lang: Go
          source: "package main\n\nimport (\n\t\"context\"\n\t\"fmt\"\n\n\t\"github.com/team-telnyx/telnyx-go\"\n\t\"github.com/team-telnyx/telnyx-go/option\"\n)\n\nfunc main() {\n\tclient := telnyx.NewClient(\n\t\toption.WithAPIKey(\"My API Key\"),\n\t)\n\tvoiceClone, err := client.VoiceClones.New(context.TODO(), telnyx.VoiceCloneNewParams{\n\t\tGender:        telnyx.VoiceCloneNewParamsGenderMale,\n\t\tLanguage:      \"en\",\n\t\tName:          \"clone-narrator\",\n\t\tVoiceDesignID: \"550e8400-e29b-41d4-a716-446655440000\",\n\t})\n\tif err != nil {\n\t\tpanic(err.Error())\n\t}\n\tfmt.Printf(\"%+v\\n\", voiceClone.Data)\n}\n"
        - lang: Java
          source: |-
            package com.telnyx.sdk.example;

            import com.telnyx.sdk.client.TelnyxClient;
            import com.telnyx.sdk.client.okhttp.TelnyxOkHttpClient;
            import com.telnyx.sdk.models.voiceclones.VoiceCloneCreateParams;
            import com.telnyx.sdk.models.voiceclones.VoiceCloneCreateResponse;

            public final class Main {
                private Main() {}

                public static void main(String[] args) {
                    TelnyxClient client = TelnyxOkHttpClient.fromEnv();

                    VoiceCloneCreateParams params = VoiceCloneCreateParams.builder()
                        .gender(VoiceCloneCreateParams.Gender.MALE)
                        .language("en")
                        .name("clone-narrator")
                        .voiceDesignId("550e8400-e29b-41d4-a716-446655440000")
                        .build();
                    VoiceCloneCreateResponse voiceClone = client.voiceClones().create(params);
                }
            }
        - lang: Ruby
          source: |-
            require "telnyx"

            telnyx = Telnyx::Client.new(api_key: "My API Key")

            voice_clone = telnyx.voice_clones.create(
              gender: :male,
              language: "en",
              name: "clone-narrator",
              voice_design_id: "550e8400-e29b-41d4-a716-446655440000"
            )

            puts(voice_clone)
        - lang: CLI
          source: |-
            telnyx voice-clones create \
              --api-key 'My API Key' \
              --gender male \
              --language en \
              --name clone-narrator \
              --voice-design-id 550e8400-e29b-41d4-a716-446655440000
components:
  schemas:
    VoiceCloneRequest:
      type: object
      description: Request body for creating a voice clone from an existing voice design.
      required:
        - name
        - voice_design_id
        - language
        - gender
      properties:
        name:
          type: string
          minLength: 1
          maxLength: 255
          description: Name for the voice clone.
        voice_design_id:
          type: string
          format: uuid
          description: UUID of the source voice design to clone.
        language:
          type: string
          description: ISO 639-1 language code for the clone (e.g. `en`, `fr`, `de`).
        gender:
          type: string
          enum:
            - male
            - female
            - neutral
          description: Gender of the voice clone.
        provider:
          type: string
          enum:
            - telnyx
            - minimax
            - Telnyx
            - Minimax
          default: telnyx
          description: Voice synthesis provider. Case-insensitive. Defaults to `telnyx`.
      example:
        name: clone-narrator
        voice_design_id: 550e8400-e29b-41d4-a716-446655440000
        language: en
        gender: male
        provider: telnyx
    VoiceCloneResponse:
      type: object
      description: Response envelope for a single voice clone.
      properties:
        data:
          $ref: '#/components/schemas/VoiceCloneData'
      example:
        data:
          record_type: voice_clone
          id: 660f9511-f3ac-52e5-b827-557766551111
          source_voice_design_id: 550e8400-e29b-41d4-a716-446655440000
          source_voice_design_version: 1
          name: clone-narrator
          language: en
          gender: male
          label: Speak in a warm, friendly tone
          created_at: '2024-01-01T00:00:00Z'
          updated_at: '2024-01-01T00:00:00Z'
          provider: Telnyx
          provider_supported_models:
            - Qwen3TTS
          provider_voice_id: 660f9511-f3ac-52e5-b827-557766551111
    voice-designs_ErrorResponse:
      type: object
      description: Standard error response envelope.
      properties:
        errors:
          type: array
          items:
            $ref: '#/components/schemas/ErrorObject'
      example:
        errors:
          - code: '10005'
            title: Resource not found
            detail: Voice design not found
    VoiceCloneData:
      type: object
      description: A voice clone object.
      properties:
        record_type:
          type: string
          enum:
            - voice_clone
          description: Identifies the resource type.
        id:
          type: string
          format: uuid
          description: Unique identifier for the voice clone.
        source_voice_design_id:
          type:
            - string
            - 'null'
          format: uuid
          description: UUID of the source voice design. `null` for upload-based clones.
        source_voice_design_version:
          type:
            - integer
            - 'null'
          description: >-
            Version of the source voice design used. `null` for upload-based
            clones.
        name:
          type: string
          description: Name of the voice clone.
        language:
          type:
            - string
            - 'null'
          description: ISO 639-1 language code of the voice clone.
        gender:
          type:
            - string
            - 'null'
          enum:
            - male
            - female
            - neutral
            - null
          description: Gender of the voice clone.
        label:
          type:
            - string
            - 'null'
          description: >-
            Voice style description. If not explicitly set on upload, falls back
            to the source design's prompt text.
        created_at:
          type: string
          format: date-time
          description: Timestamp when the voice clone was created.
        updated_at:
          type: string
          format: date-time
          description: Timestamp when the voice clone was last updated.
        provider:
          type: string
          enum:
            - telnyx
            - minimax
            - Telnyx
            - Minimax
          description: Voice synthesis provider used for this clone.
        provider_supported_models:
          type: array
          items:
            type: string
          description: List of TTS model identifiers supported by this clone's provider.
        provider_voice_id:
          type:
            - string
            - 'null'
          description: >-
            Provider-specific voice identifier used for TTS synthesis. For
            Telnyx clones this equals the clone ID; for Minimax it is the
            Minimax-assigned voice ID.
    ErrorObject:
      type: object
      description: A single error object.
      properties:
        code:
          type: string
          description: Telnyx-specific error code.
        title:
          type: string
          description: Short, human-readable summary of the error.
        detail:
          type: string
          description: Detailed, human-readable explanation of the error.
        source:
          type: object
          description: Reference to the source of the error.
          properties:
            pointer:
              type: string
              description: A JSON Pointer (RFC 6901) to the field that caused the error.

````