> 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.

# Quickstart della Clonazione Vocale Istantanea

Questa guida ti mostrerà come creare un Clone Vocale Istantaneo usando l'API Clone Voice. Per creare un Clone Vocale Istantaneo tramite la dashboard, consulta la guida al prodotto [Clone Vocale Istantaneo](/docs/it/eleven-creative/voices/voice-cloning/instant-voice-cloning).

Per una spiegazione approfondita del funzionamento di IVC e PVC e di quando scegliere ciascuno, consulta [Clonazione vocale: come funziona](/docs/it/eleven-api/concepts/voice-cloning).

## Usare l'API Clone Vocale Istantaneo

> **Note**
>
> Questa guida presuppone che tu abbia [configurato la chiave API e l'SDK](/docs/it/eleven-api/quickstart). Completa
> prima il quickstart, se non l'hai ancora fatto.

#### Effettua la richiesta API

Crea un nuovo file denominato `example.py` o `example.mts`, a seconda del linguaggio scelto, e aggiungi il seguente codice:

```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);
```

#### Esegui il codice

```python
python example.py
```

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

Dovresti vedere l'ID della voce stampato nella console.

## Passaggi successivi

#### [Clonazione vocale professionale](/docs/it/eleven-api/guides/how-to/voices/professional-voice-cloning)

Crea un clone di qualità superiore perfezionando un modello sui tuoi campioni vocali.

#### [Clonazione vocale: come funziona](/docs/it/eleven-api/concepts/voice-cloning)

Scopri le differenze tecniche tra IVC e PVC e quando scegliere ciascuno.