Skip to content

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

MiniMax のロゴ

MiniMax Speech 2.8 Turbo

テキスト読み上げ • MiniMax

Markdown で表示Agent セットアップ
  • サードパーティ
  • ゼロデータ保持

MiniMax Speech 2.8 Turbo は、音声クローン、感情コントロール、40 以上の言語対応を備え、テキストを自然で表現力のある音声へより速く変換します。

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

使い方

const response = await env.AI.run(
  'minimax/speech-2.8-turbo',
  {
    format: 'mp3',
    pitch: 0,
    speed: 1,
    text: 'Hello! Welcome to Cloudflare AI Gateway. Let me show you what we can do.',
    voice_id: 'English_expressive_narrator',
    volume: 1,
  },
)
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": "minimax/speech-2.8-turbo",
  "input": {
    "format": "mp3",
    "pitch": 0,
    "speed": 1,
    "text": "Hello! Welcome to Cloudflare AI Gateway. Let me show you what we can do.",
    "voice_id": "English_expressive_narrator",
    "volume": 1
  }
}'
{
  "gatewayMetadata": {
    "keySource": "Unified"
  },
  "result": {
    "audio": "https://pub-04a6d208d361438ea01b797e6973bd19.r2.dev/catalog/minimax__speech-2.8-turbo/simple-speech.mp3"
  },
  "state": "Completed"
}

速いナレーション — すばやく再生できるようナレーションを速くします
const response = await env.AI.run(
  'minimax/speech-2.8-turbo',
  {
    format: 'mp3',
    pitch: 0,
    speed: 1.5,
    text: 'This is a fast-paced summary of the key findings from the quarterly report. Revenue is up fifteen percent and user growth exceeded expectations.',
    voice_id: 'English_expressive_narrator',
    volume: 1,
  },
)
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": "minimax/speech-2.8-turbo",
  "input": {
    "format": "mp3",
    "pitch": 0,
    "speed": 1.5,
    "text": "This is a fast-paced summary of the key findings from the quarterly report. Revenue is up fifteen percent and user growth exceeded expectations.",
    "voice_id": "English_expressive_narrator",
    "volume": 1
  }
}'
{
  "gatewayMetadata": {
    "keySource": "Unified"
  },
  "result": {
    "audio": "https://pub-04a6d208d361438ea01b797e6973bd19.r2.dev/catalog/minimax__speech-2.8-turbo/fast-narration.mp3"
  },
  "state": "Completed"
}
落ち着いたトーン — 瞑想やリラックス向けの落ち着いた安定した発話です
const response = await env.AI.run(
  'minimax/speech-2.8-turbo',
  {
    emotion: 'calm',
    format: 'mp3',
    pitch: 0,
    speed: 0.8,
    text: 'Take a deep breath in. Hold it for a moment. Now slowly exhale. Let your shoulders relax and release any tension.',
    voice_id: 'English_expressive_narrator',
    volume: 1,
  },
)
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": "minimax/speech-2.8-turbo",
  "input": {
    "emotion": "calm",
    "format": "mp3",
    "pitch": 0,
    "speed": 0.8,
    "text": "Take a deep breath in. Hold it for a moment. Now slowly exhale. Let your shoulders relax and release any tension.",
    "voice_id": "English_expressive_narrator",
    "volume": 1
  }
}'
{
  "gatewayMetadata": {
    "keySource": "Unified"
  },
  "result": {
    "audio": "https://pub-04a6d208d361438ea01b797e6973bd19.r2.dev/catalog/minimax__speech-2.8-turbo/calm-tone.mp3"
  },
  "state": "Completed"
}
ピッチ調整 — より低い声になるようピッチを下げます
const response = await env.AI.run(
  'minimax/speech-2.8-turbo',
  {
    format: 'mp3',
    pitch: -6,
    speed: 1,
    text: 'Good evening. Tonight we explore the mysteries of the deep ocean and the creatures that live in total darkness.',
    voice_id: 'English_expressive_narrator',
    volume: 1,
  },
)
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": "minimax/speech-2.8-turbo",
  "input": {
    "format": "mp3",
    "pitch": -6,
    "speed": 1,
    "text": "Good evening. Tonight we explore the mysteries of the deep ocean and the creatures that live in total darkness.",
    "voice_id": "English_expressive_narrator",
    "volume": 1
  }
}'
{
  "gatewayMetadata": {
    "keySource": "Unified"
  },
  "result": {
    "audio": "https://pub-04a6d208d361438ea01b797e6973bd19.r2.dev/catalog/minimax__speech-2.8-turbo/adjusted-pitch.mp3"
  },
  "state": "Completed"
}

パラメーター

text
string必須maxLength: 10000音声に変換するテキストです。最大 10,000 文字です。
voice_id
string必須デフォルト: English_expressive_narrator合成に使う voice ID です
speed
number必須デフォルト: 1minimum: 0.5maximum: 2発話速度です(0.5〜2)
volume
number必須デフォルト: 1minimum: 0maximum: 10発話の音量です(0〜10)
pitch
integer必須デフォルト: 0minimum: -12maximum: 12ピッチ調整です(-12〜12)
emotion
stringenum: happy, sad, angry, fearful, disgusted, surprised, calm, fluent合成音声の感情コントロールです
format
string必須デフォルト: mp3enum: mp3, flac, wav出力音声の形式です
audio
string生成された音声ファイルの URL です

API スキーマ(Raw)

Input
Output

役に立ちましたか?