fix: 真机 16k mp3 服务端解码为 PCM,修复 ASR 实时回显失败

DashScope 无法解码微信真机录制的 16k MPEG-2 Layer III mp3(报 DecodePost resample audio from 0 to 16000 failed)。按文件头识别容器后,实时与整段两条链路统一先解码为 16bit 单声道 PCM 再推供应商。
This commit is contained in:
lik
2026-10-31 19:54:37 +08:00
parent 02d57f82dc
commit 13981c047b
7 changed files with 186 additions and 63 deletions
+1
View File
@@ -8,6 +8,7 @@
"name": "attendant-api",
"version": "1.0.0",
"dependencies": {
"@audio/decode-mp3": "^1.3.1",
"@audio/decode-webm": "^1.6.1",
"@langchain/anthropic": "^1.5.9",
"@langchain/core": "^1.2.9",