Skip to content

feat(quicker): 为热词添加了 Quicker 动作匹配模式#228

Open
shandianchengzi wants to merge 1 commit intoHaujetZhao:masterfrom
shandianchengzi:master
Open

feat(quicker): 为热词添加了 Quicker 动作匹配模式#228
shandianchengzi wants to merge 1 commit intoHaujetZhao:masterfrom
shandianchengzi:master

Conversation

@shandianchengzi
Copy link

@shandianchengzi shandianchengzi commented Jan 11, 2026

PR 目的

Quicker 是一个快捷操作工具集,支持 Windows、MacOS,支持大量的自定义动作,其官方介绍如是Quicker软件 您的指尖工具箱 - Quicker

Quicker 的每一个动作都有对应的 ID,并且提供了通过 WebSocket 的方式去用第三方应用连接并调用其动作的方法。

image

因此,我在热词中添加了"识别结果 = Quicker 动作"的模式匹配。

image

兼容性声明

  1. 代码已经过我自己严格审查,保证是最小改动。
  2. 本功能更新不需要额外打包 Python 程序,用到的 Python 库都是之前已经被引入进来的。
  3. 不影响原本的任何正常功能的使用,即使没有 Quicker,也不会产生任何的干扰。
  4. README 也已经更新,有助于新用户去使用这个功能。

效果

在具体使用的时候,它的效果如这样:
image

Copilot AI review requested due to automatic review settings January 11, 2026 09:58
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@HaujetZhao
Copy link
Owner

新版本,我提供了 更好的热词替换算法,并有整合独立文件,你可以直接用。

@HaujetZhao
Copy link
Owner

客户端,在 linux 和 macos 上可能在键盘按键监控上有问题,我也在想要不要给服务端加上一个可以被其他软件调用开启和停止语音转录的 api 接口。不过我还没有想好要怎么去架构。

你这个的需求是什么?是通过 QUICKER 调用开始和停止语音传录吗?

@HaujetZhao
Copy link
Owner

哦,我懂了。你是希望通过语音识别的指令去调用其他的程序。我后面考虑怎么架构一下。

@HaujetZhao
Copy link
Owner

最新的commit,我给加入了UDP 控制和 UDP 广播功能,你可以用外部的脚本监听 UDP 端口,然后去调用 Quicker 的指令

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants