Files
msh-system/msh_crmeb_22/crmeb-service
msh-agent e27e094183 fix(asr): 一句话识别 sourceType=1 时支持显式 voiceFormat(test-0415 反馈3-1 续修)
- 老逻辑:req.setVoiceFormat(getVoiceFormat(request.getUrl()))
  sourceType=1 时 url 为空 → 默认 wav → 把 mp3 数据当 wav 给腾讯云 → "Audio decoding failed"
- 修复:TencentAsrRequest 新增 voiceFormat 字段(前端已透传 'mp3')
  ToolTencentAsrServiceImpl.sentenceRecognition 优先使用 request.getVoiceFormat(),
  缺省回落到 getVoiceFormat(url) 兼容老调用

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-03 03:05:37 +08:00
..