fix(compute): 语音识别预置可用化并更新预设数据至 v135 (#128)

百炼 paraformer-v2 与本地 Whisper 的预置没有语音协议,解析报 missing_model_profile,用户选了也用不了。

- 百炼预置改用 fun-asr-realtime,paraformer-v2 只接受公网 URL,移出接入面并写入 tombstones,规格保留。
- 本地 Whisper 绑定独立规格 whisper-large-v3,声明 credentialMode: none;该字段只进 V1 投影,已发布客户端的 V2 连接 Schema 不接受。
- OpenAI 新增 gpt-transcribe,whisper-1 记录 2027-02-26 停服并暂留。
- 同步官方来源、模型与平台指纹、适配与规格决策记录、来源缺口清单和回归测试。
This commit is contained in:
yige authored and GitHub committed 2026-11-01 17:58:04 +08:00
1 parent 30f65178cc
commit 3046afb9ca
47 files changed
+1512 -409

No files matched your search

+4
View File
@@ -10,6 +10,10 @@
2026-10-28 数据批次 134:新增 7 个精确原厂型号、18 条接入记录,并将 MiniMax 套餐已下线的 Preview 预置替换为正式版,当前共 293 条规格、353 条接入。原厂、订阅与 OpenRouter 的窗口、输出、推理和计价分别维护;新型号不加入默认自动路由。下文的 340 条是初次迁移核对范围,当前编译器实际对照全部 353 条。
2026-11-01 数据批次 135:语音识别预置可用化,新增 3 个精确规格(`fun-asr-realtime`、`gpt-transcribe`、`whisper-large-v3`)与 1 条净增接入(`gpt-transcribe`;`fun-asr-realtime` 替换 dashscope 的 `paraformer-v2`,后者写入 tombstones、规格保留),当前共 296 条规格、354 条接入。
`access.metadata.v1Connection` 放只进 V1 Provider 投影的连接字段:已发布客户端的 V2 连接 Schema 为 `additionalProperties: false`,未知键会让整份配置中心数据被拒收(`算力目录Schema不兼容当前客户端`)。目前只有本地 Whisper 的 `credentialMode`。编译产物删除这个键,等客户端 V2 Schema 接受并铺开后再移入 `connection`。
metadata不消费。V1布局及历史未消费extra保存在canonical metadata,完整回投影;运行时产物删除布局信息。迁移不刷新官方核验日期、不提升proof等级。价格币种和原数值保持,复杂价阶/注释保留sourceKey和源单位;没有转换为零或统一按token收费。
客户端用户配置迁移不由这个仓库对用户磁盘执行,由客户端迁移器保留秘密、用户覆写与一次回滚基线;本工具只迁移受管作者数据。
+302 -90
View File
@@ -8152,6 +8152,73 @@
}
}
},
{
"modelRef": "openai:gpt-transcribe",
"identity": {
"vendor": "openai",
"canonicalModelId": "gpt-transcribe"
},
"facts": {
"capabilities": [
"asr",
"multilingual"
],
"serviceType": [
"asr"
],
"description": "OpenAI 推荐的录音转写模型,支持多语言音频,自动识别语言",
"constraints": {
"modelOrigin": {
"vendor": "openai",
"canonicalModelId": "gpt-transcribe",
"family": "gpt-transcribe"
},
"speech": {
"protocol": "openai-audio-transcriptions",
"protocolVersion": "1",
"modes": [
"batch"
],
"inputFormats": [
"webm",
"wav",
"mp3"
],
"languageHints": false
}
}
},
"routing": {},
"lifecycle": {
"status": "active",
"checkedAt": "2026-11-01"
},
"metadata": {
"recordedExtra": {},
"projection": {
"specKeys": [
"capabilities",
"serviceType",
"description",
"extra"
],
"extraKeys": [
"modelOrigin",
"speech"
]
},
"sourceFile": "compute/model-specs/openai.json",
"legacyIdentity": {
"displayName": "GPT Transcribe",
"family": "gpt-transcribe",
"match": {
"exact": [
"gpt-transcribe"
]
}
}
}
},
{
"modelRef": "openai:whisper-1",
"identity": {
@@ -8170,7 +8237,10 @@
},
"routing": {},
"lifecycle": {
"status": "unknown"
"status": "deprecated",
"retiredAt": "2027-02-26",
"evidence": "https://developers.openai.com/api/docs/deprecations",
"checkedAt": "2026-11-01"
},
"metadata": {
"recordedExtra": {},
@@ -8194,6 +8264,72 @@
}
}
},
{
"modelRef": "openai:whisper-large-v3",
"identity": {
"vendor": "openai",
"canonicalModelId": "whisper-large-v3"
},
"facts": {
"capabilities": [
"asr",
"multilingual"
],
"serviceType": [
"asr"
],
"description": "OpenAI 开放权重的 Whisper large-v3,需自行部署兼容 OpenAI 转写接口的服务",
"constraints": {
"modelOrigin": {
"vendor": "openai",
"canonicalModelId": "whisper-large-v3",
"family": "whisper"
},
"speech": {
"protocol": "openai-audio-transcriptions",
"protocolVersion": "1",
"modes": [
"batch"
],
"inputFormats": [
"webm",
"wav",
"mp3"
],
"languageHints": true
}
}
},
"routing": {},
"lifecycle": {
"status": "unknown"
},
"metadata": {
"recordedExtra": {},
"projection": {
"specKeys": [
"capabilities",
"serviceType",
"description",
"extra"
],
"extraKeys": [
"modelOrigin",
"speech"
]
},
"sourceFile": "compute/model-specs/openai.json",
"legacyIdentity": {
"displayName": "Whisper Large V3",
"family": "whisper-large-v3",
"match": {
"exact": [
"whisper-large-v3"
]
}
}
}
},
{
"modelRef": "openai:o3-pro",
"identity": {
@@ -10629,6 +10765,79 @@
}
}
},
{
"modelRef": "qwen:fun-asr-realtime",
"identity": {
"vendor": "qwen",
"canonicalModelId": "fun-asr-realtime"
},
"facts": {
"capabilities": [
"asr",
"chinese_optimized",
"multilingual"
],
"serviceType": [
"asr"
],
"description": "通义 Fun-ASR 实时语音识别,WebSocket 流式转写",
"constraints": {
"modelOrigin": {
"vendor": "alibaba",
"canonicalModelId": "fun-asr-realtime",
"family": "fun-asr-realtime"
},
"speech": {
"protocol": "dashscope-websocket-asr",
"protocolVersion": "1",
"modes": [
"batch",
"streaming"
],
"inputFormats": [
"webm",
"wav",
"pcm",
"mp3"
],
"sampleRates": [
16000
],
"languageHints": true
}
}
},
"routing": {},
"lifecycle": {
"status": "active",
"checkedAt": "2026-11-01"
},
"metadata": {
"recordedExtra": {},
"projection": {
"specKeys": [
"capabilities",
"serviceType",
"description",
"extra"
],
"extraKeys": [
"modelOrigin",
"speech"
]
},
"sourceFile": "compute/model-specs/qwen.json",
"legacyIdentity": {
"displayName": "Fun-ASR Realtime",
"family": "fun-asr-realtime",
"match": {
"exact": [
"fun-asr-realtime"
]
}
}
}
},
{
"modelRef": "qwen:paraformer-v2",
"identity": {
@@ -10643,7 +10852,7 @@
"serviceType": [
"asr"
],
"description": "通义语音识别"
"description": "通义录音文件异步转写,只接受公网可访问的音频 URL;客户端未适配"
},
"routing": {},
"lifecycle": {
@@ -18433,7 +18642,8 @@
"qwen-plus",
"qwen-turbo",
"qwen3-max",
"qwen3-max-trans"
"qwen3-max-trans",
"paraformer-v2"
]
},
"models": [
@@ -19656,30 +19866,40 @@
}
},
{
"apiModelId": "paraformer-v2",
"modelRef": "qwen:paraformer-v2",
"apiModelId": "fun-asr-realtime",
"modelRef": "qwen:fun-asr-realtime",
"binding": {
"kind": "exact",
"reason": "exact-id-or-declared-alias"
"reason": "official-exact-model-identity"
},
"overrides": {},
"request": {},
"billing": [],
"billing": [
{
"sourceKey": "extra.pricingNotes",
"amount": "华北2(北京)按输入音频秒数计费 0.00033 元/秒,输出不计费。",
"currency": "CNY",
"unit": "annotation",
"verification": "officially-verified-access-contract"
}
],
"lifecycle": {
"status": "unknown"
"status": "active"
},
"metadata": {
"attributes": {
"displayName": "Paraformer V2",
"description": "通义语音识别"
"displayName": "Fun-ASR Realtime",
"description": "通义 Fun-ASR 实时语音识别,支持听写与音频文件转写"
},
"recordedExtra": {
"maxAudioLength": 3600,
"supportedInputFormats": [
"pcm",
"wav",
"mp3",
"pcm",
"ogg"
"opus",
"speex",
"aac",
"amr"
],
"streamingSupported": true
},
@@ -19693,36 +19913,12 @@
"extra"
],
"extraKeys": [
"maxAudioLength",
"supportedInputFormats",
"streamingSupported"
"streamingSupported",
"pricingNotes"
]
},
"sourceRecord": "compute/providers/dashscope.json#paraformer-v2",
"adapterReadiness": {
"checkedAt": "2026-10-03",
"evidence": [
{
"path": "packages/agent-service/src/speech/asr-adapter.ts",
"assertion": "recognize/synthesize通过resolveSpeechCompute解析model profile与adapter,非直接按Provider.apiFormat发送。"
},
{
"path": "packages/agent-service/src/speech/speech-resolver.ts",
"assertion": "resolveProfile仅显式modelOrigin/speech或兼容表;无profile且无兼容命中立即fail missing_model_profile。"
},
{
"path": "packages/speech-core/src/model-compatibility.ts",
"assertion": "逐精确ID匹配:tts-1/hd、whisper-1、mimo-v2.5tts/asr、cosyvoice-v2/v3前缀、fun-asr-realtime前缀;本行均未命中,无provider/local-whisper fallback。"
}
],
"floorDecision": "没有实现/正式发布证据,不填猜测版本。候选展示保留,出站及自动路由禁止,适配验收后再解除。"
}
},
"protocol": {
"state": "unsupported",
"reason": "missing-speech-profile-and-compatibility",
"apiFormat": "openai-completions",
"adapterId": "required-adapter:asr:dashscope"
"sourceRecord": "compute/providers/dashscope.json#fun-asr-realtime"
}
},
{
@@ -22807,30 +23003,12 @@
"models": [
{
"apiModelId": "whisper-large-v3",
"modelRef": null,
"modelRef": "openai:whisper-large-v3",
"binding": {
"kind": "access-local",
"reason": "本地开源安装与云whisper-1不是同一合同;保留本地安装识别,不继承云端接口/额度。"
},
"overrides": {
"serviceType": {
"value": [
"asr"
],
"reason": "preserved-access-contract",
"evidence": "compute/providers/local-whisper.json#whisper-large-v3",
"verification": "inherited-not-reverified"
},
"capabilities": {
"value": [
"asr",
"multilingual"
],
"reason": "preserved-access-contract",
"evidence": "compute/providers/local-whisper.json#whisper-large-v3",
"verification": "inherited-not-reverified"
}
"kind": "exact",
"reason": "本地部署的开放权重 large-v3 精确身份;不继承云端 whisper-1 的接口与额度。"
},
"overrides": {},
"request": {},
"billing": [],
"lifecycle": {
@@ -22867,37 +23045,15 @@
"streamingSupported"
]
},
"sourceRecord": "compute/providers/local-whisper.json#whisper-large-v3",
"automaticRouting": false,
"adapterReadiness": {
"checkedAt": "2026-10-03",
"evidence": [
{
"path": "packages/agent-service/src/speech/asr-adapter.ts",
"assertion": "recognize/synthesize通过resolveSpeechCompute解析model profile与adapter,非直接按Provider.apiFormat发送。"
},
{
"path": "packages/agent-service/src/speech/speech-resolver.ts",
"assertion": "resolveProfile仅显式modelOrigin/speech或兼容表;无profile且无兼容命中立即fail missing_model_profile。"
},
{
"path": "packages/speech-core/src/model-compatibility.ts",
"assertion": "逐精确ID匹配:tts-1/hd、whisper-1、mimo-v2.5tts/asr、cosyvoice-v2/v3前缀、fun-asr-realtime前缀;本行均未命中,无provider/local-whisper fallback。"
}
],
"floorDecision": "没有实现/正式发布证据,不填猜测版本。候选展示保留,出站及自动路由禁止,适配验收后再解除。"
}
},
"protocol": {
"state": "unsupported",
"reason": "missing-speech-profile-and-compatibility",
"apiFormat": "openai-completions",
"adapterId": "required-adapter:asr:local-whisper"
"sourceRecord": "compute/providers/local-whisper.json#whisper-large-v3"
}
}
],
"metadata": {
"sourceFile": "compute/providers/local-whisper.json"
"sourceFile": "compute/providers/local-whisper.json",
"v1Connection": {
"credentialMode": "none"
}
}
},
{
@@ -30178,6 +30334,62 @@
"sourceRecord": "compute/providers/openai.json#tts-1-hd"
}
},
{
"apiModelId": "gpt-transcribe",
"modelRef": "openai:gpt-transcribe",
"binding": {
"kind": "exact",
"reason": "official-exact-model-identity"
},
"overrides": {},
"request": {},
"billing": [
{
"sourceKey": "extra.pricingNotes",
"amount": "OpenAI lists this model at $0.0045 per minute of transcription audio.",
"currency": "USD",
"unit": "annotation",
"verification": "officially-verified-access-contract"
}
],
"lifecycle": {
"status": "active"
},
"metadata": {
"attributes": {
"displayName": "GPT Transcribe",
"description": "OpenAI 推荐的录音转写模型,按音频分钟计费,接替将于 2027-02-26 停服的 Whisper"
},
"recordedExtra": {
"supportedInputFormats": [
"mp3",
"mp4",
"mpeg",
"mpga",
"m4a",
"wav",
"webm"
],
"streamingSupported": true
},
"projection": {
"modelKeys": [
"modelName",
"displayName",
"serviceType",
"description",
"capabilities",
"extra"
],
"extraKeys": [
"supportedInputFormats",
"streamingSupported",
"pricingNotes"
]
},
"sourceRecord": "compute/providers/openai.json#gpt-transcribe"
}
},
{
"apiModelId": "whisper-1",
"modelRef": "openai:whisper-1",
@@ -30203,7 +30415,7 @@
"metadata": {
"attributes": {
"displayName": "Whisper",
"description": "通用语音识别"
"description": "通用语音识别。OpenAI 已标记弃用,将于 2027-02-26 停服,新配置请选 GPT Transcribe"
},
"recordedExtra": {
"maxAudioLength": 600,