- サードパーティ
ElevenLabs の最新テキスト読み上げモデルです。高度なボイス制御で、表現力の高い自然な音声を生成します。
| モデル情報 | |
|---|---|
| 利用規約とライセンス | リンク ↗ |
| 詳細情報 | リンク ↗ |
| 料金 | Cloudflare ダッシュボードで料金を見る ↗ |
const response = await env.AI.run(
'elevenlabs/eleven-v3',
{
text: 'Welcome to Cloudflare AI Gateway. This is ElevenLabs speech synthesis with a natural, expressive delivery.',
voice_id: 'JBFqnCBsd6RMkjVDRZzb',
output_format: 'mp3_44100_128',
},
)
console.log(response)curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/run \
--header "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
--header "Content-Type: application/json" \
--data '{
"model": "elevenlabs/eleven-v3",
"input": {
"text": "Welcome to Cloudflare AI Gateway. This is ElevenLabs speech synthesis with a natural, expressive delivery.",
"voice_id": "JBFqnCBsd6RMkjVDRZzb",
"output_format": "mp3_44100_128"
}
}'{
"state": "Completed",
"result": {
"audio": "https://examples.aig.cloudflare.com/elevenlabs/eleven-v3/expressive-speech.mp3"
},
"gatewayMetadata": {
"keySource": "Unified"
}
}text
string必須minLength: 1maxLength: 10000音声に変換するテキストです。voice_id
string必須minLength: 1生成に使う ElevenLabs の voice ID です。output_format
stringenum: mp3_22050_32, mp3_24000_48, mp3_44100_128, mp3_44100_192, mp3_44100_32, mp3_44100_64, mp3_44100_96, opus_48000_128, opus_48000_192, opus_48000_32, opus_48000_64, opus_48000_96language_code
string強制する ISO 639-1 言語コードです。▶voice_settings{}
objectseed
integerminimum: 0maximum: 4294967295previous_text
stringnext_text
stringapply_text_normalization
stringenum: auto, on, offaudio
string生成された音声ファイルの Base64 エンコード data URI です。