impress_asr_input_rust/web
impressionyang a4d6353f1a
Some checks are pending
Build Windows GUI / build-windows (push) Waiting to run
Build Windows GUI / release (push) Blocked by required conditions
feat: 添加自定义模型路径配置功能
后端变更:
- src/app/commands.rs: 新增 select_model_file 命令,使用 Tauri dialog 打开文件选择器
- src/app/mod.rs: 注册 select_model_file 命令到 invoke_handler

前端变更:
- web/src/pages/SettingsPage.tsx:
  - 添加 modelPath 字段到 Settings 接口
  - 添加 handleSelectModel 函数处理文件选择
  - 添加模型路径配置 UI(输入框 + 选择按钮)
- web/src/App.css: 添加.model-path-selector 样式

功能说明:
- 用户可通过托盘菜单或设置页面选择自定义 ONNX 模型文件
- 支持 .onnx 扩展名过滤
- 模型路径保存在配置中,可选功能,留空时使用内置模型
- 设置保存后应用到 ASR 引擎
2026-05-21 18:45:08 +08:00
..
src feat: 添加自定义模型路径配置功能 2026-05-21 18:45:08 +08:00
index.html 初始提交:Windows 跨平台语音识别应用 2026-05-21 17:58:18 +08:00
package-lock.json 初始提交:Windows 跨平台语音识别应用 2026-05-21 17:58:18 +08:00
package.json 初始提交:Windows 跨平台语音识别应用 2026-05-21 17:58:18 +08:00
tsconfig.json 初始提交:Windows 跨平台语音识别应用 2026-05-21 17:58:18 +08:00
tsconfig.node.json 初始提交:Windows 跨平台语音识别应用 2026-05-21 17:58:18 +08:00
vite.config.ts 初始提交:Windows 跨平台语音识别应用 2026-05-21 17:58:18 +08:00