API Documentation

CloneVoice API

Powerful voice cloning API that makes it easy for your applications to integrate high-quality voice cloning features. Supports multiple programming languages with complete SDKs and detailed documentation.

1. Get API Key

Register an account and get your API key

2. Integrate SDK

Choose your programming language and integrate the SDK

3. Start Calling

Upload voice samples and generate high-quality speech

API Endpoints

POST
/api/v1/voices/clone

Clone Voice

Upload voice sample and start cloning process

POST
/api/v1/voices/generate

Generate Speech

Generate TTS audio using cloned voice

GET
/api/v1/voices

Get Voice List

Get all cloned voices for the user

GET
/api/v1/voices/{id}/status

Get Training Status

Query the progress status of voice cloning training

Code Examples

javascript
// CloneVoice API JavaScript SDK
import { CloneVoice } from '@clonevoice/sdk';

// Initialize client
const client = new CloneVoice({
  apiKey: 'your_api_key_here',
  baseURL: 'https://api.clonevoice.org'
});

// Clone voice
async function cloneVoice() {
  try {
    const response = await client.voices.clone({
      audioFile: './sample.wav',
      name: 'My Voice Clone',
      description: 'Personal voice clone'
    });

    console.log('Voice clone started:', response);
    return response.voiceId;
  } catch (error) {
    console.error('Error:', error);
  }
}

// Generate speech
async function generateSpeech(voiceId) {
  try {
    const audio = await client.voices.generate({
      voiceId: voiceId,
      text: 'Hello, this is my cloned voice!',
      settings: {
        speed: 1.0,
        pitch: 1.0,
        emotion: 1.0
      }
    });

    // Save audio file
    const blob = new Blob([audio], { type: 'audio/wav' });
    const url = URL.createObjectURL(blob);
    const a = document.createElement('a');
    a.href = url;
    a.download = 'generated_voice.wav';
    a.click();
  } catch (error) {
    console.error('Error:', error);
  }
}

API Features

RESTful API

Standard REST interface, easy to integrate and use

High Performance

Millisecond response times, supports concurrent calls

Secure Authentication

API key-based secure authentication mechanism

Complete Documentation

Detailed API documentation and code examples

Start Using CloneVoice API

Register now to get free API credits and start building your voice applications