- サードパーティ
- ゼロデータ保持
MiniMax Speech 2.8 HD は、感情コントロール、40 以上の言語対応、音声クローンを備えたスタジオ品質の音声生成に特化しています。
| モデル情報 | |
|---|---|
| 利用規約とライセンス | リンク ↗ |
| 詳細情報 | リンク ↗ |
| ゼロデータ保持 | はい |
| 料金 | Cloudflare ダッシュボードで料金を見る ↗ |
const response = await env.AI.run(
'minimax/speech-2.8-hd',
{
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-hd",
"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-hd/simple-speech.mp3"
},
"state": "Completed"
}カスタム音声 — 特定の音声を使い、速さを調整します
const response = await env.AI.run(
'minimax/speech-2.8-hd',
{
format: 'mp3',
pitch: 0,
speed: 0.9,
text: 'The weather today is sunny with a high of 72 degrees. Perfect for a walk in the park.',
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-hd",
"input": {
"format": "mp3",
"pitch": 0,
"speed": 0.9,
"text": "The weather today is sunny with a high of 72 degrees. Perfect for a walk in the park.",
"voice_id": "English_expressive_narrator",
"volume": 1
}
}'{
"gatewayMetadata": {
"keySource": "Unified"
},
"result": {
"audio": "https://pub-04a6d208d361438ea01b797e6973bd19.r2.dev/catalog/minimax__speech-2.8-hd/custom-voice.mp3"
},
"state": "Completed"
}感情指定 — 発話に感情トーンを付けます
const response = await env.AI.run(
'minimax/speech-2.8-hd',
{
emotion: 'happy',
format: 'mp3',
pitch: 0,
speed: 1,
text: "Congratulations! You've just won the grand prize! This is absolutely incredible news!",
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-hd",
"input": {
"emotion": "happy",
"format": "mp3",
"pitch": 0,
"speed": 1,
"text": "Congratulations! You'\''ve just won the grand prize! This is absolutely incredible news!",
"voice_id": "English_expressive_narrator",
"volume": 1
}
}'{
"gatewayMetadata": {
"keySource": "Unified"
},
"result": {
"audio": "https://pub-04a6d208d361438ea01b797e6973bd19.r2.dev/catalog/minimax__speech-2.8-hd/with-emotion.mp3"
},
"state": "Completed"
}高いサンプルレート — 44.1kHz サンプルレートのスタジオ品質です
const response = await env.AI.run(
'minimax/speech-2.8-hd',
{
format: 'mp3',
pitch: 0,
sample_rate: 44100,
speed: 1,
text: 'This recording is generated at studio quality sample rate for the highest possible audio fidelity.',
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-hd",
"input": {
"format": "mp3",
"pitch": 0,
"sample_rate": 44100,
"speed": 1,
"text": "This recording is generated at studio quality sample rate for the highest possible audio fidelity.",
"voice_id": "English_expressive_narrator",
"volume": 1
}
}'{
"gatewayMetadata": {
"keySource": "Unified"
},
"result": {
"audio": "https://pub-04a6d208d361438ea01b797e6973bd19.r2.dev/catalog/minimax__speech-2.8-hd/high-sample-rate.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出力音声の形式です▶sample_rate
いずれかaudio
string生成された音声ファイルの URL です