Skip to content

非公式本サイトは非公式の日本語ドキュメントであり、Cloudflare 公式サイトではありません。最新情報はdevelopers.cloudflare.comをご確認ください。

ElevenLabs のロゴ

Eleven Turbo v2.5

テキスト読み上げ • ElevenLabs

Markdown で表示Agent セットアップ
  • サードパーティ

ElevenLabs の Turbo v2.5 テキスト読み上げモデルです。32 言語で、高品質な音声生成と低レイテンシのバランスを取ります。

モデル情報
利用規約とライセンスリンク
詳細情報リンク
料金Cloudflare ダッシュボードで料金を見る

使い方

const response = await env.AI.run(
  'elevenlabs/eleven-turbo-v2-5',
  {
    text: 'Your Cloudflare AI Gateway usage report is ready. Review provider latency, token counts, cache status, and request costs in the dashboard.',
    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-turbo-v2-5",
  "input": {
    "text": "Your Cloudflare AI Gateway usage report is ready. Review provider latency, token counts, cache status, and request costs in the dashboard.",
    "voice_id": "JBFqnCBsd6RMkjVDRZzb",
    "output_format": "mp3_44100_128"
  }
}'
{
  "state": "Completed",
  "result": {
    "audio": "https://examples.aig.cloudflare.com/elevenlabs/eleven-turbo-v2-5/ai-gateway-notification.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_96
language_code
string強制する ISO 639-1 言語コードです。
seed
integerminimum: 0maximum: 4294967295
previous_text
string
next_text
string
apply_text_normalization
stringenum: auto, on, off
audio
string生成された音声ファイルの Base64 エンコード data URI です。

API スキーマ(Raw)

Input
Output

役に立ちましたか?