> This is a page from the ElevenLabs documentation. For a complete page index, fetch https://elevenlabs.io/docs/llms.txt. For the full documentation in a single file, fetch https://elevenlabs.io/docs/llms-full.txt.

# इंस्टेंट वॉइस क्लोनिंग क्विकस्टार्ट

इस गाइड में बताया गया है कि Clone Voice API का इस्तेमाल करके इंस्टेंट वॉइस क्लोन कैसे बनाएं। डैशबोर्ड के ज़रिए इंस्टेंट वॉइस क्लोन बनाने के लिए [इंस्टेंट वॉइस क्लोन](/docs/hi/eleven-creative/voices/voice-cloning/instant-voice-cloning) प्रोडक्ट गाइड देखें।

IVC और PVC अंदरूनी तौर पर कैसे काम करते हैं और किसे कब चुनना चाहिए, इसकी विस्तृत जानकारी के लिए [वॉइस क्लोनिंग: यह कैसे काम करती है](/docs/hi/eleven-api/concepts/voice-cloning) देखें।

## इंस्टेंट वॉइस क्लोन API का इस्तेमाल

> **Note**
>
> इस गाइड में माना गया है कि आपने [अपनी API कुंजी और SDK सेट अप कर ली है](/docs/hi/eleven-api/quickstart)। अगर नहीं की है,
> तो पहले क्विकस्टार्ट पूरा करें।

#### API अनुरोध करें

अपनी पसंदीदा भाषा के आधार पर `example.py` या `example.mts` नाम की नई फ़ाइल बनाएं और इसमें यह कोड जोड़ें:

```python maxLines=0
# example.py
import os
from dotenv import load_dotenv
from elevenlabs.client import ElevenLabs
from io import BytesIO

load_dotenv()

elevenlabs = ElevenLabs(
  api_key=os.getenv("ELEVENLABS_API_KEY"),
)

voice = elevenlabs.voices.ivc.create(
    name="My Voice Clone",
    # Replace with the paths to your audio files.
    # The more files you add, the better the clone will be.
    files=[BytesIO(open("/path/to/your/audio/file.mp3", "rb").read())]
)

print(voice.voice_id)
```

```typescript maxLines=0
// example.mts
import { ElevenLabsClient } from "@elevenlabs/elevenlabs-js";
import "dotenv/config";
import fs from "node:fs";

const elevenlabs = new ElevenLabsClient();

const voice = await elevenlabs.voices.ivc.create({
    name: "My Voice Clone",
    // Replace with the paths to your audio files.
    // The more files you add, the better the clone will be.
    files: [
        fs.createReadStream(
            "/path/to/your/audio/file.mp3",
        ),
    ],
});

console.log(voice.voiceId);
```

#### कोड चलाएं

```python
python example.py
```

```typescript
npx tsx example.mts
```

आपको कंसोल में वॉइस ID प्रिंट होती दिखेगी।

## अगले चरण

#### [प्रोफेशनल वॉइस क्लोनिंग](/docs/hi/eleven-api/guides/how-to/voices/professional-voice-cloning)

अपनी वॉइस के सैंपल पर मॉडल को फाइन-ट्यून करके बेहतर गुणवत्ता वाला क्लोन बनाएं।

#### [वॉइस क्लोनिंग: यह कैसे काम करती है](/docs/hi/eleven-api/concepts/voice-cloning)

IVC और PVC के तकनीकी अंतर समझें और जानें कि किसे कब चुनना चाहिए।