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

# Re-voice a recording

> Swap the voice in a recording for one of your cloned voices, keeping the words and timing. Up to 5 minutes.

Speech-to-speech: keeps the words and timing of a recording and replaces the voice with one of your [cloned voices](https://tryunsora.com/docs/api-reference/voice-clones/list.md). Audio can be up to 5 minutes. Costs 10 credits per minute, rounded up (minimum 1).

Poll [Poll voiceover status](https://tryunsora.com/docs/api-reference/voiceovers/poll-status.md) with `conversion.id`.

```bash theme={null}
curl -X POST "https://mvp.tryunsora.com/api/v1/voice-conversions/create" \
  -H "Authorization: Bearer uns_YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "voice_id": "YOUR_CLONE_ID",
    "source_url": "https://cdn.example.com/take-3.mp3",
    "output_format": "mp3"
  }'
```


## OpenAPI

````yaml POST /voice-conversions/create
openapi: 3.1.0
info:
  title: Unsora API
  version: 1.4.0
  description: >-
    Public API for Unsora integrations. Authenticate with an Unsora API key
    (`uns_…`, created under Developers → API keys in the app) as a Bearer token
    in the Authorization header. Limit: 60 requests per minute per key; over it,
    429 with code RATE_LIMIT_EXCEEDED.
servers:
  - url: https://mvp.tryunsora.com/api/v1
    description: Production
  - url: /api/v1
    description: This server
security: []
tags:
  - name: User
  - name: Models
    description: >-
      Every video, image and motion-control model, with each model's inputs
      taken from the provider's own request schema and prices quoted live. One
      generate endpoint covers all of them.
  - name: Video
  - name: Image
  - name: Influencer
  - name: Thumbnail
  - name: Clipping
  - name: Music
  - name: Voiceover
  - name: Upscaler
  - name: Subtitle removal
  - name: Motion control
  - name: Avatar
  - name: Movie materials
  - name: Voice clones
  - name: Voice changer
  - name: Uploads
  - name: Scheduler
paths:
  /voice-conversions/create:
    post:
      tags:
        - Voice changer
      summary: Re-voice a recording with a cloned voice
      description: >-
        Speech-to-speech: keeps the words and timing of a recording and swaps
        the voice for one of your clones. Audio up to 5 minutes. Costs 10
        credits per minute, rounded up (minimum 1). Poll GET
        /voiceovers/status/{id} with `conversion.id`.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - voice_id
              properties:
                voice_id:
                  type: string
                  description: >-
                    Id of one of your cloned voices (GET /voice-clones). Preset
                    voices are rejected.
                source_url:
                  type: string
                  format: uri
                  description: Recording to re-voice. Send this or `source_asset_id`.
                source_asset_id:
                  type: string
                  description: One of your AUDIO or VIDEO assets instead of `source_url`.
                output_format:
                  type: string
                  enum:
                    - mp3
                    - wav
                  default: mp3
      responses:
        '200':
          description: Job queued
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VoiceConversionCreateResponse'
        '400':
          description: >-
            Missing voice_id or source, a voice that isn't your clone, an
            invalid output_format, or audio longer than 5 minutes
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '402':
          description: Insufficient credits
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: User not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '503':
          description: Voice conversion is not configured
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - bearerAuth: []
components:
  schemas:
    VoiceConversionCreateResponse:
      type: object
      properties:
        success:
          type: boolean
        conversion:
          type: object
          properties:
            id:
              type: string
            status:
              type: string
              example: QUEUED
          required:
            - id
            - status
        creditsDeducted:
          type: integer
        creditsRemaining:
          type: integer
      required:
        - success
        - conversion
    ErrorResponse:
      type: object
      properties:
        success:
          type: boolean
        error:
          type: string
        code:
          type: string
        message:
          type: string
      required:
        - error
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: An Unsora API key (`uns_…`). A Clerk session token also works.

````

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