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

# Voice Conversion

> Transform the voice in an audio file to a different AI voice while preserving the original content.



## OpenAPI

````yaml POST /v1/audio/voice-conversion
openapi: 3.0.1
info:
  title: FineVoice API
  description: >-
    This is the documentation for the FineVoice API. If you have any questions
    or need assistance, please contact support@finevoice.ai.
  version: v1
servers:
  - url: https://apis.finevoice.ai
    description: FineVoice API Gateway
security:
  - BearerAuth: []
paths:
  /v1/audio/voice-conversion:
    post:
      tags:
        - Audio
      summary: Voice Conversion
      description: >-
        Transform the voice in an audio file to a different AI voice while
        preserving the original content.
      operationId: VoiceConversion
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/VoiceConversionRequest'
      responses:
        '200':
          description: >-
            Task accepted. Returns a taskId for async polling or the result URL
            directly.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AudioTaskResponse'
        '401':
          description: Unauthorized — invalid or missing API key.
        '422':
          description: Validation error — check request body fields.
components:
  schemas:
    VoiceConversionRequest:
      type: object
      description: The voice conversion request payload.
      properties:
        voice:
          type: string
          description: The target voice model name.
          example: leo
        sourceUrl:
          type: string
          description: The source audio URL.
          example: >-
            https://dlaudio.fineshare.net/cover/speak/30f23d17-634d-420e-99e7-d24097dc669b.mp3
        outputFormat:
          type: string
          description: 'The desired output audio format. Supported: `mp3`, `wav`.'
          example: mp3
        useAsync:
          type: boolean
          description: >-
            Set to `true` to process asynchronously and receive a `taskId` for
            polling.
          example: true
    AudioTaskResponse:
      type: object
      description: Standard response for audio processing tasks.
      properties:
        status:
          type: integer
          format: int32
          description: HTTP-style status code (200 for success, 202 for in-progress).
        url:
          type: string
          description: Download URL of the generated audio file (available when completed).
        taskId:
          type: string
          description: Task identifier for async polling. Use with GET /v1/task/{task_id}.
          example: a1b2c3d4-e5f6-7890-abcd-ef1234567890
        error:
          $ref: '#/components/schemas/ApiError'
        urls:
          type: array
          items:
            type: string
          description: Multiple output URLs (e.g. for separation stems).
        service:
          type: string
        port:
          type: string
        timestamp:
          type: string
    ApiError:
      type: object
      properties:
        code:
          type: string
          description: Error code.
        message:
          type: string
          description: Error message.
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: 'Bearer token (API key). Format: `Bearer {your_api_key}`'

````