MiniMax: Speech 2.8 Turbo
MiniMax Speech 2.8 Turbo text-to-speech model optimized for faster speech synthesis with streaming, subtitle, language boost, voice modification, and pronunciation controls.
プロバイダー
同じモデルを複数のプロバイダーがホストしている場合があります。バックエンドを固定したい場合は1つのプロバイダーを選び、そうでなければルーティングに選択を任せられます。
対応言語
ar
yue
zh
cs
nl
en
fi
fr
de
el
hi
id
it
ja
ko
pl
pt
ro
ru
es
th
tr
uk
vi
ボイス
機能
Generates spoken audio from text input.
text_to_speech
Supports streaming output with stream=true.
streaming
Synthesizes speech from fully-submitted text in a single synchronous request.
synchronous
Supports sentence, word, and streaming word subtitle modes.
subtitles
Supports language-specific recognition enhancement or automatic language detection with language_boost=auto.
language_boost
Supports pitch, intensity, timbre, and sound effect controls through voice_modify.
voice_modification
Supports pronunciation replacement through pronunciation_dict.
pronunciation_dictionary
コード
ElevenLabs SDKでのストリーミングTTS
ElevenLabs SDKをAllModels経由でルーティングし、音声レスポンスをストリーミングします。
import { ElevenLabsClient } from "elevenlabs";
const client = new ElevenLabsClient({
apiKey: process.env.ALLMODELS_API_KEY,
baseUrl: "https://api.allmodels.io/el"
});
const stream = await client.textToSpeech.stream("voice_id", {
text: "I'm sorry, Dave. I'm afraid I can't do that.",
modelId: "minimax/speech-2-8-turbo",
outputFormat: "mp3_44100_128"
}, {
queryParams: {
provider: {
"only": [
"minimax"
]
}
}
});
const reader = stream.getReader();
for (;;) {
const { done, value } = await reader.read();
if (done) break;
// Write value to your response, file, or audio playback pipeline.
}
