RepositoryLua
Paxxs

Paxxs/Doubao-ime-hammerspoon

把 macOS 上的豆包输入法改造成顺手的语音输入工具,自动处理输入法切换与唤起

209sao
15fork
6issue
6lượt xem

Thành tựu nổi bật

Những danh hiệu mới nhất của dự án

1
TINIX TRENDING·Chủ đề: hammerspoon

#1 Repository Của Tuần

4
TINIX TRENDING·Chủ đề: doubao

#4 Repository Của Tuần

4
TINIX TRENDING·Chủ đề: voice-input

#4 Repository Của Tuần

🎤 Một phím để nói — Biến豆包输入法 thành voice input trên macOS

Một phím nhấn → chuyển输入法 → kích hoạt voice input → nói → tự quay lại输入法 cũ.

Dự án Doubao-ime-hammerspoon của Paxxs cung cấp cấu hình Hammerspoon (Lua) và script cài đặt một cú pháp, tự động hóa việc chuyển đổi输入法 trên macOS. Mục tiêu rõ ràng: không dùng豆包输入法 làm主输入法, mà biến nó thành công cụ voice input主力 — miễn phí, không cần đăng ký.

✨ Điểm nổi bật

  • Cài đặt một lệnh: curl -fsSL ... | bash tự động cài Hammerspoon, copy init.lua, backup cấu hình cũ
  • Trigger bằng phím tắt: Mặc định giữ và thả phím Command bên phải để kích hoạt toàn bộ workflow
  • Tự động chuyển输入法: Script ghi nhận输入法 hiện tại, chuyển sang com.bytedance.inputmethod.doubaoime.pinyin, rồi phục hồi lại sau khi hoàn tất
  • Mô phỏng双击 Option: Tự động gửi sự kiện double-click phím Option bên trái để唤起豆包语音输入
  • Hỗ trợ --force: Ghi đè cấu hình Hammerspoon hiện có với tùy chọn backup tự động
  • Tùy chỉnh dễ dàng: Có thể thay đổi phím trigger, khoảng thời gian双击, và độ trễ phục hồi trong init.lua

💡 Vì sao đáng chú ý

豆包输入法 trên macOS có mâu thuẫn rõ: khả năng gõ chữ thông thường yếu, nhưng语音识别 lại tốt và miễn phí. Vấn đề là official product design buộc người dùng phải liên tục chuyển đổi输入法, gây phiền phức. Dự án này giải quyết đúng điểm đau đó — tách riêng voice input ra khỏi workflow gõ chữ chính, biến một phím nhấn thành lệnh "bắt đầu nói".

Phù hợp cho ai đã cài豆包输入法, muốn khai thác voice input mà không chấp nhận hy sinh trải nghiệm gõ chữ hằng ngày. Cần lưu ý: chỉ hỗ trợ macOS, yêu cầu Hammerspoon được cấp quyền Accessibility, và người dùng phải tự kiểm tra输入法 ID trên máy mình nếu không khớp với giá trị mặc định trong init.lua.


#macOS #Hammerspoon #VoiceInput #Automation #Lua #TiniX

Dự án tương tự

Khám phá các dự án và mô hình AI khác có sự tương đồng.

RepositoryObjective-C
Hammerspoon/hammerspoon

Staggeringly powerful macOS desktop automation with Lua

16.5k
Nov 22, 2026
RepositoryJavaScript
affaan-m/ECC

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

309.4k
Nov 23, 2026
RepositoryShell
ohmyzsh/ohmyzsh

🙃 A delightful community-driven (with 2,500+ contributors) framework for managing your zsh configuration. Includes 300+ optional plugins (rails, git, macOS, hub, docker, homebrew, node, php, python, etc), 140+ themes to spice up your morning, and an auto-update tool that makes it easy to keep up with the latest updates from the community.

190.9k
Nov 22, 2026
RepositoryRust
Open-Less/openless

Hold a key, speak, release — AI-polished text appears at your cursor in any app. Open-source voice input for macOS & Windows. (按住快捷键说话,松开即得润色后的文字)

4.1k
Nov 19, 2026
RepositoryC++
xifan2333/fcitx5-vinput

Voice input for Fcitx5 — local and cloud ASR, LLM rewriting, cross-distro packages

653
Nov 20, 2026
RepositoryPython
lilong7676/doubao-murmur

极简语音输入法,利用豆包 Web 语音识别实现全局听写。支持 macOS 、Windows 与 Linux/SteamOS(Steam Deck 手柄一键语音输入)

148
Nov 12, 2026
RepositoryTypeScript
n8n-io/n8n

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

211.9k
Nov 23, 2026
RepositoryDart
flutter/flutter

Flutter makes it easy and fast to build beautiful apps for mobile and beyond

181.3k
Nov 18, 2026
Repository
jlevy/the-art-of-command-line

Master the command line, in one page

162.8k
Jun 25, 2024