One-Key Input v0.1.0
One-Key Input v0.1.0
第一个公开版本 / First public release.
这是什么 / What it is
按住 F9 → 说话 → 松开 → 上下文感知的 AI 润色文字 直接落到光标处。
Hold F9 → speak → release → context-aware AI-polished text typed at your cursor.
不切窗口、不复制粘贴、不打断输入流。
No window switching, no copy-paste, no interrupting your flow.
亮点 / Highlights
-
上下文感知润色 / Context-aware polish
按下热键时,Core 用 Windows UIAutomation 抓取当前前台窗口的 — 应用名、窗口标题、焦点控件、光标前后字符、同窗口其它可见文本区域 — 附加到 LLM 的 system prompt。同样一句"挺有意思的",在 YouTube 评论框、Slack 回复、代码注释里会被润成完全不同、贴合场景的句子。
When you press the hotkey, Core takes a UIAutomation snapshot of the foreground window — app, title, focused control, text around the caret, sibling text regions — and appends it to the LLM's system prompt. The same "interesting take" gets rewritten differently in a YouTube comment box, a Slack reply, or a code comment. -
零延迟设计 / Zero-latency design
上下文抓取和录音并行(800ms 预算),不增加总时长。config.json里polish.use_context: false完全关闭。
Context capture runs in parallel with recording (800ms budget) — no added latency. Setpolish.use_context: falseinconfig.jsonto disable entirely. -
后端可插拔 / Pluggable backends
ASR / LLM 都是接口化的。当前默认 Azure Speech + Azure OpenAI,OpenAI 也支持。本地 Whisper / 本地 LLM 接口已留好。
ASR and LLM are interfaces. Defaults: Azure Speech + Azure OpenAI; OpenAI works too. Local Whisper / local LLM hooks are stubbed. -
润色失败安全网 / Polish-failure safety net
LLM 调用失败时自动回落到注入原始识别结果——你不会丢字。
If polish fails, the raw transcript is injected — you never lose an utterance. -
完全 BYO Keys / Bring your own keys
没有云服务、没有遥测。所有调用直接发到你自己的 Azure / OpenAI 账号。
No server, no telemetry. All calls go directly to your own Azure / OpenAI account.
安装 / Install
下载下面的 OneKeyInput-0.1.0-portable.zip,解压到任意目录,双击 onekey-core.exe。第一次运行会弹出设置窗口让你填 key。完整说明见 README。
Download OneKeyInput-0.1.0-portable.zip below, extract anywhere, double-click onekey-core.exe. The settings window opens automatically on first run. See the README for details.
你需要 / You need
- Windows 10/11 (x64)
- Azure Speech 资源 (免费档每月 5 小时识别足够日常用 / free tier covers normal use)
- 一个 LLM endpoint:Azure OpenAI deployment(推荐 gpt-4o-mini)或 OpenAI API key
已知局限 / Known limits
- UIA 对原生 Win32 / WinUI / WPF 应用读取最佳;Electron / 浏览器内嵌内容深度依赖该应用是否暴露完整 a11y 树。专门的浏览器/IM 适配器在 v0.2 路线图。
UIA reads native Win32 / WinUI / WPF apps best; Electron and browser content depend on a11y tree exposure. Dedicated browser/IM adapters are on the v0.2 roadmap. - 仅 Windows。Linux/macOS 抽象层已铺设但未实现。
Windows only. Linux/macOS abstraction layers are stubbed.
反馈 / Feedback
- 🐛 Issues
- 💡 Discussions
- ⭐ Star if it's useful — that's how I see whether to keep building.