feat(asr): surface sherpa streaming UI and docs
User description
概要
- 胶囊监听
local-asr-token,在录音 / 转写 / 润色阶段显示 sherpa online streaming partial 文本。 - Local ASR 页面新增 Batch / Streaming 模型标签、最近一次诊断信息,以及 Zipformer streaming 模型元数据。
- 补齐 sherpa streaming 相关中英日韩繁体文案。
- 新增 Windows-only
sherpa_online_spikeexample,用于直接验证 Zipformer online 模型的 partial / final 输出和 RTF。 - 更新 Windows sherpa-onnx ASR 实施计划,记录当前已完成状态和剩余验收项。
验证
npm run buildcargo check --manifest-path src-tauri/Cargo.toml --example sherpa_online_spike
PR Type
Enhancement, Tests, Documentation
Description
-
Surface sherpa streaming partials in capsule
-
Add local ASR model diagnostics
-
Extend sherpa model catalog metadata
-
Ship Windows streaming probe and plan updates
Diagram Walkthrough
flowchart LR
A["Sherpa model catalog"] -- "mode metadata" --> B["Local ASR page"]
B -- "state + diagnostics" --> C["Capsule UI"]
D["local-asr-token events"] -- "partial text" --> C
E["Windows spike example"] -- "validates streaming model" --> A
F["Windows sherpa plan"] -- "documents current status" --> B
File Walkthrough
| Relevant files | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Tests | 1 files
| ||||||||||||
| Enhancement | |||||||||||||
| Documentation | 6 files
|
PR Reviewer Guide 🔍
Here are some key observations to aid the review process:
| ⏱️ Estimated effort to review: 3 🔵🔵🔵⚪⚪ |
| 🧪 No relevant tests |
| 🔒 No security concerns identified |
⚡ Recommended focus areas for reviewCompile error
str::ends_with does not accept a predicate function, so this whitespace check will fail to compile. That means the new Windows spike example cannot be built until the spacing logic is rewritten with a valid check.
|
我需要看到你具体的表现形式,具体的表现形式就是我需要具体的表现和具体的显示形式。
看不懂你的意思
看不懂你的意思
意思是请给出演示图片和视频(对于任何 UI 相关改动
本次涉及的主要前端改动为胶囊里的实时文字显示。
@appergb 我们是否应该合入这个pr?
@H-Chris233 NO 这个应该给开关. 其次是他的P R没有详细的写出它更改了哪些部分 再然后是如果要有显示应该在胶囊的上方单独弹出窗口进行显示,并且这个窗口的显示应该是从横向往上,然后可以扩大到这种动态的窗口,然后里面做字符,然后字符就变动的时候窗口变动大小
对于这种UI改动的功能请给开关
PR 合并冲突提示
当前状态: 本 PR(Draft)与 eta 已为 CONFLICTING,且开启时间较早,rebase 成本较高。
与其他 open PR 的重叠:
- i18n/en.ts 等 5 个语言文件:与 #666、#664、#638 均有交集(多为不同 key,冲突好解)
- 本 PR 改动集中在 ASR UI / 文档,与听写热点 PR(#682/#688/#692/#666)无直接文件重叠
建议: 准备合入前先 rebase 到最新 eta;若同期有大功能 PR(#666、#638)合入,rebase 时留意 i18n/*。
当前pr拖延时间过久,已经过时,关闭。