Skip to content

Releases: haoku123/dsh-voice

v0.5.0 — SenseVoice host-side ASR + cache-through model proxy

Choose a tag to compare

@haoku123 haoku123 released this 17 Aug 02:11

0.5.0 — SenseVoice ASR 迁移

重大变更

  • ASR 引擎从浏览器 whisper (transformers.js) 迁移到 host 端 SenseVoice (sherpa-onnx)
    • 简体中文原生输出(不再出现繁体),自带标点 + ITN(逆文本正则化)
    • 语言自动检测(zh/en/ja/ko/yue),中英混说也能识别
    • 识别走新增的 POST /dsh-voice-api/asr 接口(原始 f32 PCM in, {text} out)

新特性

  • 模型磁盘缓存代理(GET /hf/*):cache-through + 断点续传,模型文件一次下载永久本地复用
  • npm run prefetch:一键预热模型缓存(SenseVoice int8,约 230MB)
  • 配置简化:移除 cdnBase,model 改为 SenseVoice repo id,新增 useItn / cacheDir

UI

  • 语音浮层毛玻璃化 + 均衡器动画 + 脉冲指示
  • 麦克风按钮按状态切换指示器(录音脉冲 / 说话均衡器 / 转写 spinner)

已知限制

  • 首次开口前模型懒加载约 2-5 秒(host 端,一次性)
  • ASR 推理同步运行在 host 事件循环(roadmap: worker_thread)

安装

dsh plugin --profile web add github:haoku123/dsh-voice#v0.5.0

模型走 modelHost(默认 huggingface.co),CN 网络可在 profile patch 中改为 https://hf-mirror.com。