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:
@@ -10,6 +10,7 @@
|
||||
"test": "node --test test/*.test.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@audio/decode-mp3": "^1.3.1",
|
||||
"@audio/decode-webm": "^1.6.1",
|
||||
"@langchain/anthropic": "^1.5.9",
|
||||
"@langchain/core": "^1.2.9",
|
||||
|
||||
Reference in New Issue
Block a user