feat(quicker): 为热词添加了 Quicker 动作匹配模式#228
feat(quicker): 为热词添加了 Quicker 动作匹配模式#228shandianchengzi wants to merge 1 commit intoHaujetZhao:masterfrom
Conversation
There was a problem hiding this comment.
Pull request overview
This PR adds Quicker action integration to the hot word system. Quicker is a quick action tool for Windows/MacOS that exposes actions via WebSocket. The implementation allows users to trigger Quicker actions by mapping spoken phrases to action UUIDs in the hot word configuration file.
Changes:
- Added UUID pattern matching to distinguish Quicker action IDs from regular hot word replacements
- Implemented WebSocket client with connection management, authentication, and reconnection logic
- Integrated Quicker action triggering into the recognition result flow
- Added configuration options and documentation for the new feature
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 8 comments.
Show a summary per file
| File | Description |
|---|---|
| util/hot_sub_rule.py | Adds Quicker词典 dictionary and UUID pattern matching to categorize hot words as either regex replacements or Quicker action triggers |
| util/client_quicker.py | New file implementing WebSocket client for Quicker with connection management, authentication, and action triggering functionality |
| util/client_recv_result.py | Integrates Quicker action triggering - checks if recognized text matches a Quicker action key and triggers it instead of typing |
| core_client.py | Adds initialization call for Quicker configuration at startup |
| config.py | Adds configuration parameters for Quicker host, port, and password |
| readme.md | Documents the new Quicker action feature with usage instructions and examples |
| hot-rule.txt | Adds example comment showing how to configure Quicker actions |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
b0eab85 to
e821d2d
Compare
e821d2d to
3ad1dcc
Compare
|
新版本,我提供了 更好的热词替换算法,并有整合独立文件,你可以直接用。 |
|
客户端,在 linux 和 macos 上可能在键盘按键监控上有问题,我也在想要不要给服务端加上一个可以被其他软件调用开启和停止语音转录的 api 接口。不过我还没有想好要怎么去架构。 你这个的需求是什么?是通过 QUICKER 调用开始和停止语音传录吗? |
|
哦,我懂了。你是希望通过语音识别的指令去调用其他的程序。我后面考虑怎么架构一下。 |
|
最新的commit,我给加入了UDP 控制和 UDP 广播功能,你可以用外部的脚本监听 UDP 端口,然后去调用 Quicker 的指令 |
PR 目的
Quicker 是一个快捷操作工具集,支持 Windows、MacOS,支持大量的自定义动作,其官方介绍如是Quicker软件 您的指尖工具箱 - Quicker。
Quicker 的每一个动作都有对应的 ID,并且提供了通过 WebSocket 的方式去用第三方应用连接并调用其动作的方法。
因此,我在热词中添加了"识别结果 = Quicker 动作"的模式匹配。
兼容性声明
效果
在具体使用的时候,它的效果如这样:
