{"id":51897046,"url":"https://github.com/zhanba/aime","last_synced_at":"2026-07-26T11:30:48.822Z","repository":{"id":372027935,"uuid":"1296309600","full_name":"zhanba/aime","owner":"zhanba","description":null,"archived":false,"fork":false,"pushed_at":"2026-07-18T12:30:16.000Z","size":1627,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-07-18T13:15:16.749Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zhanba.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":"ROADMAP.md","authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-07-10T09:08:48.000Z","updated_at":"2026-07-18T12:30:29.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/zhanba/aime","commit_stats":null,"previous_names":["zhanba/aime"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/zhanba/aime","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhanba%2Faime","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhanba%2Faime/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhanba%2Faime/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhanba%2Faime/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zhanba","download_url":"https://codeload.github.com/zhanba/aime/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhanba%2Faime/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35913015,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-07-20T02:08:10.276Z","status":"online","status_checked_at":"2026-07-26T02:00:06.503Z","response_time":89,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-07-26T11:30:47.909Z","updated_at":"2026-07-26T11:30:48.807Z","avatar_url":"https://github.com/zhanba.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Aime\n\n**AI 输入法：语音 + 拼音双模态，中英混输为核心场景。macOS 原生。**\n\n说话、打字，随时切换：语音转写和拼音候选出现在同一个组合区，共享上下文和你的个人词库，\n还能互相纠错。默认完全本地运行；配置 API Key 后可选接入 LLM，整句润色更自然。\n\n\u003c!-- TODO: 演示 GIF --\u003e\n\u003c!-- ![demo](docs/assets/demo.gif) --\u003e\n\n## 功能\n\n- **整句拼音输入**：整句连打不用分词，漏敲、多敲、按错邻键、前后颠倒都能自动纠回来；\n  本地毫秒级出字，空格上屏永不等网络，断网照常用；配置 API 后 LLM 对整句柔和精修\n- **语音输入**：任意输入框按住右 Option 说话，本地模型实时转写，松开即出字；\n  结果进组合区，可与拼音混着编辑后一次上屏\n- **跨模态纠错**：语音识别错了字？退格删掉直接用拼音修，Aime 结合原始发音重新猜你想要的词\n- **回改键**（Shift+Space）：刚上屏的内容一键拉回组合区，换候选、继续改\n- **组合区翻译**（Tab）：中文写到一半按 Tab 直接出英文译文候选，Esc 无损退回\n- **越用越懂你**：拼音和语音上屏共同训练个人词库，新词自动进入语音热词与 LLM 上下文\n- **隐私可感知**：默认纯本地、零网络请求；联网功能只发文本、永不发音频\n\n## 安装\n\n系统要求：**macOS 26+**（依赖 SpeechAnalyzer 与 MLX），Apple Silicon。\n\n1. 从 [Releases](https://github.com/zhanba/aime/releases) 下载最新 `Aime-x.y.z.dmg`，拖入「应用程序」；\n2. 打开 Aime → 设置 → 拼音页 → **安装输入法**；\n3. 系统设置 → 键盘 → 输入法 → 添加「Aime拼音」；\n4. 可选：设置里配置 OpenAI 兼容 API（DeepSeek / OpenRouter / 本地 Ollama）启用 LLM 整句精修与翻译。\n\n首次使用会按需请求麦克风与辅助功能权限；首次语音输入自动下载本地 ASR 模型\n（0.6B 约 700MB）。\n\n\u003cdetails\u003e\n\u003csummary\u003e模型下载慢？（国内网络加速）\u003c/summary\u003e\n\n模型权重从 HuggingFace CDN 下载，单流速度可能很慢。手动加速：用多线程工具（aria2c/分段 curl）\n下载模型文件，放进 `~/Library/Application Support/aime/models/\u003corg\u003e/\u003cname\u003e/`\n（如 `aufklarer/Qwen3-ASR-1.7B-MLX-8bit`），需要 `config.json`、`model.safetensors`\n（或分片 + `model.safetensors.index.json`）、`vocab.json`、`merges.txt`、`tokenizer_config.json`。\n目录里存在 `.safetensors` 后自动走离线模式。\n\n\u003c/details\u003e\n\n## 隐私\n\n- 语音转写**完全在本地**（Qwen3-ASR/MLX 或 Apple SpeechAnalyzer），音频永不离开设备；\n- API Key 留空 = 纯本地模式，不发出任何网络请求；\n- 配置 API Key 后，仅发送转写文本、拼音分析和（可开关的）光标前文本到**你自己配置的** endpoint；\n- API Key 存放在系统钥匙串（Keychain），不落明文配置文件；\n- 浮层/组合区对携带上下文的网络请求有明确指示。\n\n## 从源码构建\n\n要求：macOS 26+，Xcode 26+。\n\n```sh\nmake run            # 构建、打包 build/aime.app 并启动\nmake install-ime    # 构建并安装输入法到 ~/Library/Input Methods\nswift test          # 单测\n```\n\n默认用 \"Apple Development\" 证书签名（保持 TCC 权限在重新构建后不失效）；没有证书时\n`make bundle SIGN_IDENTITY=-`。\n\n架构、评测与调试见 [docs/development.md](docs/development.md)，算法原理见\n[docs/algorithm.md](docs/algorithm.md)，发布流程见 [docs/release.md](docs/release.md)，\n规划见 [ROADMAP.md](ROADMAP.md)。\n\n## 致谢\n\n- [白霜拼音 rime-frost](https://github.com/gaboolic/rime-frost)（GPL-3.0）——本地词库数据来源。\n  **不随本仓库/安装包分发**：应用运行时从上游下载并在用户侧编译为二进制词库\n- [Qwen3-ASR](https://github.com/QwenLM/Qwen3-ASR)（Apache-2.0）与\n  [qwen3-asr-swift](https://github.com/ivan-digital/qwen3-asr-swift)——本地语音识别\n- [MLX Swift](https://github.com/ml-explore/mlx-swift)——Apple Silicon 本地推理\n- [Handy](https://github.com/cjpais/Handy)、[ds-input](https://github.com/madeye/ds-input)——设计参考\n\n## 许可\n\n[MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzhanba%2Faime","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzhanba%2Faime","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzhanba%2Faime/lists"}