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

# インスタントボイスクローン クイックスタート

このガイドでは、クローン音声APIを使用してインスタントボイスクローンを作成する方法を説明します。ダッシュボードからインスタントボイスクローンを作成するには、[インスタントボイスクローン](/docs/ja/eleven-creative/voices/voice-cloning/instant-voice-cloning)プロダクトガイドをご覧ください。

IVCとPVCの仕組み、およびそれぞれを選ぶべき場面について詳しくは、[ボイスクローンの仕組み](/docs/ja/eleven-api/concepts/voice-cloning)をご覧ください。

## インスタントボイスクローンAPIの使用方法

> **Note**
>
> このガイドでは、[APIキーとSDKのセットアップ](/docs/ja/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/ja/eleven-api/guides/how-to/voices/professional-voice-cloning)

音声サンプルでモデルを微調整し、より高品質なクローンを作成します。

#### [ボイスクローンの仕組み](/docs/ja/eleven-api/concepts/voice-cloning)

IVCとPVCの技術的な違い、およびそれぞれを選ぶべき場面を理解します。