Commit Graph

3 Commits

Author SHA1 Message Date
da5d0d8ad2 feat: 打通录音核心链路,连接前后端命令
Some checks failed
Build Windows GUI / build-windows (push) Has been cancelled
Build Windows GUI / release (push) Has been cancelled
- 重构 capture.rs:添加 start_recording/stop_recording 支持真正的开始/停止控制
- 更新 AppState:引入 RecordingHandle 字段管理录音状态
- 重构 commands.rs:start_recording 立即返回,stop_recording 停止并保存文件
- 新增 recognize_file/recognize_last_recording 命令
- 前端 RecordPage:调用真实后端命令,监听 recording-stopped 事件自动识别
- 前端 FileConvertPage:连接 recognize_file 命令,支持导出识别结果
- 前端 SettingsPage:通过 save_config 持久化配置,支持配置加载

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-04 20:19:44 +08:00
impressionyang
251ba9928f fix: 添加 Tauri v2 权限配置以支持文件对话框
新增文件:
- capabilities/default.json: Tauri v2 权限配置文件

权限配置:
- core🪟* - 窗口控制权限
- core:webview:* - Webview 权限
- shell:* - Shell 命令权限
- dialog:* - 文件对话框权限(包含 allow-open)
- fs:* - 文件系统权限

修复问题:
- 模型文件选择对话框无法打开
- Tauri v2 默认无权限,需要通过 capabilities 配置

构建结果:
- Linux GUI: dist/impress-asr-linux-x64-20260521_202605.tar.gz (4.8MB)
- 文件对话框现在可以正常打开
2026-05-21 20:31:11 +08:00
impressionyang
ceb2df18c4 初始提交:Windows 跨平台语音识别应用
Some checks are pending
Build Windows GUI / build-windows (push) Waiting to run
Build Windows GUI / release (push) Blocked by required conditions
功能:
- Tauri v2 GUI 应用
- 系统托盘支持
- 日志输出到文件
- 带时间戳的版本号
- 前端资源嵌入

修复:
- 前端路径使用相对路径
- 移除 devUrl 配置
- 窗口置顶设置
2026-05-21 17:58:18 +08:00