fix(compute): MiniMax 语音合成声明 T2A 协议并更新预设数据至 v136 (#129)

MiniMax 六个 speech 型号没有语音协议,解析报 missing_model_profile,配了 Key 也不能用于语音合成。

- 六个规格声明 minimax-t2a-http 协议、输出格式、采样率与 16 个预置音色,默认 female-shaonv。
- 解除直连 6 条、套餐 2 条接入的未适配标记,未加入默认自动路由。
- 同步官方来源、模型指纹、适配决策记录、来源缺口清单和回归测试。
- 未做账号调用;真实合成与订阅 Key 能否调用该接口待账号实测。
This commit is contained in:
yige authored and GitHub committed 2026-11-02 08:48:24 +08:00
1 parent 3046afb9ca
commit 6eef9c1fb7
24 files changed
+3106 -781

No files matched your search

@@ -215,6 +215,25 @@ test('Whisper-1 stays selectable in V1 until its announced shutdown', () => {
assert.equal(lifecycle.status, 'deprecated')
assert.equal(lifecycle.retiredAt, '2027-02-26')
})
test('MiniMax speech models declare the T2A protocol with PCM at the immersive sample rate', () => {
const specs = read('compute/model-specs/minimax.json').specs
const models = ['speech-2.8-hd', 'speech-2.8-turbo', 'speech-2.6-hd', 'speech-2.6-turbo', 'speech-02-hd', 'speech-02-turbo']
for (const model of models) {
const { modelOrigin, speech } = specs.find(item => item.id === model).spec.extra
assert.deepEqual(modelOrigin, { vendor: 'minimax', canonicalModelId: model, family: 'minimax-speech' })
assert.equal(speech.protocol, 'minimax-t2a-http')
assert.ok(speech.modes.includes('batch'))
assert.ok(speech.outputFormats.includes('pcm16le'))
assert.ok(speech.sampleRates.includes(24000))
assert.ok(speech.voices.some(voice => voice.id === speech.defaultVoice))
}
const catalog = read('catalog/v2/catalog.json')
for (const id of ['provider-minimax-001', 'provider-minimax-coding-001']) {
const rows = catalog.accesses.find(item => item.id === id).models.filter(item => models.includes(item.apiModelId))
assert.equal(rows.length, id === 'provider-minimax-001' ? 6 : 2)
for (const row of rows) assert.equal(row.protocol, undefined, `${id}:${row.apiModelId}`)
}
})
test('credentialMode reaches V1 only: released clients reject unknown V2 connection keys', () => {
assert.equal(read('compute/providers/local-whisper.json').credentialMode, 'none')
for (const path of ['catalog/v2/catalog.json', 'compute/v2/catalog.json']) {