diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 94a2d6a..0d18d86 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,11 +6,5 @@ jobs: steps: - uses: actions/checkout@v4 - name: Placeholder - run: echo "TODO: add build / test / lint jobs per module" - - - - - - - + run: | + echo "TODO: add build / test / lint jobs per module" \ No newline at end of file diff --git a/AGENTS.md b/AGENTS.md index 85402ec..c3bbf0d 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -2,11 +2,24 @@ Guidance for agents working in this repo. -- Read `docs/subsystems/README.md` first for the architecture map. +- Read `docs/subsystems/README.md` first for the architecture map, and + `docs/architecture-overview.svg` for the layer diagram. - Docs layout follows yetone/magpie: top-level docs in `docs/`, - one doc per subsystem in `docs/subsystems/`. + one doc per subsystem in `docs/subsystems/`. Docs are bilingual: + English at `foo.md` / `foo.svg`, Chinese at `foo.zh-CN.md` / + `foo.zh-CN.svg`. - Local First: no voice data or personal knowledge leaves the device unless the user opts in to a cloud provider for that stage. -- Phase 1 scope is ASR + real-time translation only. Emotional TTS - and full-duplex are later phases; do not build them into phase-1 - code paths. +- Releases follow the release plan in `README.md`: + - v0.1.0 Listen (macOS): voice input, filler clean-up, translation, + summary, local knowledge base, hands-free listening, voice answers + (text output) and MCP tools that ask before acting. + - v0.2.0 Meetings: diarization and minutes; adds Windows and + HarmonyOS. + - v0.3.0 Speak: TTS and expressive reading. + - v0.4.0 See: multimodal input. + - v1.0.0 Converse: full-duplex barge-in and cross-device handoff. +- Do not build TTS into v0.1.0 or v0.2.0 code paths, or full duplex + into anything before v1.0.0. +- MCP tools that change anything must ask the user first. Speaker labels + are advisory and never authorize an action. diff --git a/README.md b/README.md index 1374af9..57b74cf 100644 --- a/README.md +++ b/README.md @@ -1,34 +1,220 @@ -# OpenVoice +

+ + + OpenVoice + +

-Agent-native voice personal agent, powered by vLLM-Omni. +

Open-source voice input method and voice sprite, powered by vLLM-Omni.

-Voice is the native modality, not a wrapper around a chatbot: OpenVoice -listens, understands, and acts — running durable jobs, routing across -providers, and handing off across devices — while your voice preferences -and knowledge stay on your device. +

English · 简体中文

+ +OpenVoice starts as a voice input method: speak in any app and get +clean, punctuated or translated text at the cursor. From there it grows +into a voice sprite that answers questions, keeps up with meetings and +reads to you, while your voice preferences and knowledge stay on your +device. Local First: voice preferences and knowledge stay on the device. Cloud models are opt-in, per stage, chosen by the user. -## Phase 1 +## Architecture -ASR + real-time translation. Emotional TTS and full-duplex -interruption come in later phases. +

+ + + + OpenVoice architecture: endpoints stream to an on-device Personal Host with voice processing, context and memory, and agent orchestration layers; inference runs locally on vLLM-Omni by default, and cloud inference needs per-stage consent + + +

-## Architecture +- **Endpoints.** macOS ships first (v0.1.0); Windows and HarmonyOS + follow in v0.2.0, and iOS and Android come later. Endpoints capture + audio, show the overlay and insert text into apps. +- **Personal Host.** The on-device agent runtime. Speech passes through + three layers: voice processing (VAD, streaming ASR, speaker labels, + and TTS from v0.3.0), context and memory (lexicon, session memory, + local knowledge base), and agent orchestration (skills, task planning, + model routing, and MCP tools that ask before acting). +- **Inference.** Local by default on vLLM-Omni. Cloud models are + optional and need consent for each stage. +- **Device boundary.** Personal data stays on the device. Only the + selected audio or text leaves it, and only for stages you authorize. + +## Release Plan + +OpenVoice ships on a release train. Each minor version has a theme. It +goes out first as `vX.Y.0-beta.N` pre-releases for early adopters, then +as a stable `vX.Y.0` once its exit checks pass. Patch releases +(`vX.Y.Z`) carry fixes between trains. Builds of `main` are published +nightly for contributors. + +| Channel | Version format | For | +| --- | --- | --- | +| `nightly` | `0.x.y-nightly.YYYYMMDD` | Contributors | +| `beta` | `vX.Y.0-beta.N` | Early adopters who want new features first | +| `stable` | `vX.Y.Z` | Everyone | + +```text + v0.1.0 LISTEN voice input method · macOS (Apple Silicon) + │ voice input · filler & self-correction clean-up · real-time translation + │ summary · local knowledge base · app-aware styles + │ voice edits on selected text · local history · model manager + │ hands-free listening · voice answers · tools that ask first (MCP) + │ + v0.2.0 MEETINGS + Windows, HarmonyOS + │ live transcription (mic + system audio) · speaker diarization + │ live summary · linked minutes · meeting memory + │ audio & video file transcription · consent first + │ + v0.3.0 SPEAK expressive reading: audiobooks, news, articles, email + │ read selection & web pages · resume where you stopped + │ scheduled briefings · spoken answers · lexicon pronunciation + │ + v0.4.0 SEE multimodal input: voice + screen, images, video + │ context fusion with the local knowledge base + │ smart completion · live intent + │ + v1.0.0 CONVERSE full-duplex barge-in · cross-device handoff +``` + +Every version keeps the same rule: all of it runs on your device by +default, and cloud models are opt-in per stage. + +### v0.1.0 · Listen: voice input method (macOS) + +A voice input method for macOS: speak instead of type, in any app. + +- **Voice input.** Hold or toggle a global hotkey. A live draft appears + in an overlay. Confirm once to insert it at the cursor. If focus moved + while you spoke, the text stays in the overlay to copy. +- **Clean-up.** Remove filler words and disfluencies (“uh”, “um”, “嗯”, + “那个”), keep only the final version of a self-correction (“Tuesday, + no, Wednesday” → “Wednesday”), and add punctuation and paragraphs. +- **Real-time translation.** Speak one language, insert another. + Multilingual, with Chinese → English as the primary evaluated + direction. Source and translation sit side by side; editing the source + retranslates it. +- **Summary.** Turn a long dictation or selected text into a short + summary, bullet points or a polished written version. +- **Local knowledge base.** A personal lexicon of names, terms and + hotwords that improves recognition and translation, plus local + folders of notes and documents indexed on device for context. +- **App-aware styles.** Per-app presets, such as casual for chat, + formal for email and literal for terminals and code editors. +- **Voice edits on selected text.** Select text and say “shorter”, + “more formal” or “translate to English”. +- **Local history.** Searchable history of dictations stays on the + device, with one-click re-insert and delete. +- **Model manager.** Download, switch and remove local ASR and LLM + models, and see where each stage runs. +- **Hands-free listening.** No hotkey needed: voice activity detection + finds where each sentence starts and ends, with live text while you + speak. +- **Voice answers with follow-ups.** Ask a question by voice and get a + text answer. The session keeps the conversation, so follow-ups work. + Spoken answers arrive with TTS in v0.3.0. +- **Tools that ask first.** OpenVoice is an MCP client. Read-only tools + run directly; any other tool waits for a click or a spoken “yes”, and + no answer counts as no. + +Platform: macOS on Apple Silicon. + +### v0.2.0 · Meetings (Windows, HarmonyOS) + +Keep up with a meeting while it is still happening. + +- **Live meeting transcription** from the microphone and system audio, + with bilingual captions. +- **Speaker diarization.** Label who said what across the whole + meeting, and enrol voices (with consent) so labels show names. Labels + are advisory and never authorise an action. +- **Live summary.** A rolling topic list that updates as the discussion + moves. +- **Minutes.** Topics, decisions, action items, owners and due dates + when the meeting ends. Each item links back to the moment it was + said, and owners stay blank unless someone was clearly named. +- **Meeting memory.** Approved minutes are saved to the local knowledge + base, so you can ask questions across past meetings. +- **Audio and video files.** Transcribe and summarize recordings you + already have. +- **Consent first.** A visible recording indicator, plus a reminder to + get participants' consent before meeting mode starts. + +Platforms: adds Windows and HarmonyOS. + +### v0.3.0 · Speak -A local Personal Host owns voice sessions, durable jobs, provider -routing, device registry, local model workers, and storage (SQLite). -See `docs/subsystems/` for one doc per subsystem. +The agent reads to you in a natural, fitting voice. + +- **Expressive reading** of audiobooks (EPUB, TXT), news, articles, + papers and email, with tone suited to headlines, body text, quotes + and dialogue. +- **Read anything.** Read the current selection or a web page aloud. +- **Listening controls.** Speed, voice, paragraph navigation and resume + from where you stopped, including after a restart. +- **Scheduled briefings** from news feeds, paper subscriptions or email + digests that you authorize. +- **Spoken answers** to questions about your local knowledge base. +- **Pronunciation from your lexicon**, so your names and terms are read + correctly. + +### v0.4.0 · See + +Voice combined with what is on your screen, so the agent understands +what you mean. + +- **Multimodal input.** Combine speech with the screen, images and + video: “summarize this chart”, “reply to this email”, “what is wrong + in this screenshot?”. +- **Context fusion.** Speech, the current app, the selection, what is on + screen and the local knowledge base form one request context, and + private context stays on local models. +- **Smart completion.** Suggest how to finish a sentence or phrase as + you speak, drawn from your own writing and knowledge. +- **Live intent.** Tell dictation, commands and questions apart as you + speak, then route each to the right action or tool. + +### Toward v1.0.0 · Converse + +- **Full-duplex barge-in.** The agent listens while it speaks. Say + “stop”, “go back” or “what does that mean?” and it stops at once, + answers, then resumes. +- **Cross-device handoff.** Continue long content on your phone from + where the desktop stopped. + +## Status + +**v0.1.0 (Listen) is in development.** The host for v0.1.0 is in review in +[#3](https://github.com/thinkflowlab/openvoice/pull/3). It runs entirely +on one Mac with local models, and nothing leaves the device. + +| v0.1.0 item | Progress | +| --- | --- | +| Voice input | 🟡 Host API done: dictation over HTTP and streaming WebSocket. The native macOS app (hotkey, overlay, insert at cursor) is not started. | +| Filler and disfluency clean-up | 🟢 Clean-up keeps the spoken language. Translation drops fillers (um, uh, 呃, 嗯) before translating. | +| Real-time translation | 🟢 Local translation adds about 0.2–0.3 s after dictation. | +| Summary | ⚪ Not started | +| Local knowledge base and lexicon | ⚪ Not started | +| App-aware styles, voice edits on selection, local history | ⚪ Not started | +| Model manager | 🟡 Each stage is routed to a local OpenAI-compatible model server chosen in configuration, so models swap without code changes. No UI yet. | +| Hands-free listening | 🟢 Silero VAD finds sentence boundaries, with live text while you speak. | +| Voice answers with follow-ups | 🟢 The session keeps the conversation. Answers are text until TTS lands in v0.3.0. | +| Tools that ask first | 🟢 MCP client with click or spoken confirmation; an example server covers time, Shortcuts, links and reminders. | + +🟢 done in review · 🟡 partly done · ⚪ not started + +[#3](https://github.com/thinkflowlab/openvoice/pull/3) also starts +v0.2.0 early with opt-in speaker labels and voice enrolment. + +Measured on an M1 Max (warm): dictation takes about 215–320 ms, and an +answer starts about 0.5–0.6 s after a hands-free sentence ends. +Evaluation scores: clean-up 16/16, answers 24/24, tool choice 10/10. ## Docs - `docs/product-definition.md` — product definition, target users, architecture, roadmap (中文: `docs/product-definition.zh-CN.md`) - `docs/reference.md` — configuration / CLI / API reference - `docs/integrating.md` — embed OpenVoice as an input method or SDK -- `docs/subsystems/` — one doc per subsystem - `docs/code-standards.md` — code standards - -## Status - -Empty skeleton. Docs layout follows yetone/magpie. diff --git a/README.zh-CN.md b/README.zh-CN.md index d574f0f..ad23c90 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -1,30 +1,154 @@ -# OpenVoice +

+ + + OpenVoice + +

-Agent 原生语音个人助手,Powered by vLLM-Omni。 +

开源语音输入法与语音精灵,Powered by vLLM-Omni。

-语音是原生交互方式,不是聊天机器人的外壳:OpenVoice 听得懂、能行动——跑持久任务、跨模型路由、跨设备接力,而语音偏好与知识库留在本地。 +

English · 简体中文

+ +OpenVoice 从语音输入法做起:在任何应用里开口说话,光标处就得到干净、带标点或已翻译的文字。在此基础上,它逐步成长为能回答问题、跟上会议、读给你听的语音精灵,而语音偏好与知识库始终留在本地。 Local First:语音偏好与知识库存在本地,不上传云端; 云端大模型按阶段可选接入,由用户自行权衡隐私与效果。 -## 首期 +## 架构 -ASR + 实时翻译。情感化 TTS 与全双工打断插话在后续阶段加入。 +

+ + + + OpenVoice 架构:端侧经流式连接到本地 Personal Host,Host 内为语音处理、上下文与记忆、Agent 编排三层;默认在本地 vLLM-Omni 推理,云端推理需逐阶段授权 + + +

-## 架构 +- **端侧**:macOS 首发(v0.1.0),Windows 与 HarmonyOS 在 v0.2.0 跟进,iOS 与 Android 后续支持。端侧负责采集音频、显示浮窗、把文字写入应用。 +- **Personal Host**:运行在本机的 Agent 运行时。语音依次经过三层:语音处理(VAD、流式 ASR、说话人标注,v0.3.0 起加入 TTS)、上下文与记忆(个人词库、会话记忆、本地知识库)、Agent 编排(技能、任务规划、模型路由,以及执行前先确认的 MCP 工具)。 +- **推理**:默认在本地用 vLLM-Omni 推理。云端模型可选,每个阶段需单独授权。 +- **设备边界**:个人数据留在本机。只有选中的音频或文字、且只在你授权的阶段才会出端。 + +## 发布计划 + +OpenVoice 采用版本火车发布。每个小版本有一个主题:先以 `vX.Y.0-beta.N` 预发布给尝鲜用户,通过发布检查后再发正式版 `vX.Y.0`。两班火车之间用补丁版本(`vX.Y.Z`)发布修复。`main` 分支每晚构建,供贡献者使用。 + +| 渠道 | 版本格式 | 面向 | +| --- | --- | --- | +| `nightly` | `0.x.y-nightly.YYYYMMDD` | 贡献者 | +| `beta` | `vX.Y.0-beta.N` | 想先用上新功能的尝鲜用户 | +| `stable` | `vX.Y.Z` | 所有用户 | + +```text + v0.1.0 听 语音输入法 · macOS(Apple Silicon) + │ 语音输入 · 语气词与自我更正清理 · 实时翻译 + │ 总结 · 本地知识库 · 按应用切换风格 + │ 选中文字语音改写 · 本地历史 · 模型管理 + │ 免手动收听 · 语音问答 · 执行前先确认的工具(MCP) + │ + v0.2.0 会议 + Windows、HarmonyOS + │ 实时转写(麦克风 + 系统音频)· 说话人区分 + │ 实时总结 · 可回溯纪要 · 会议记忆 + │ 音视频文件转写 · 先征得同意 + │ + v0.3.0 说 情感化朗读:有声书、新闻、文章、邮件 + │ 朗读选中内容与网页 · 断点续听 + │ 定时播报 · 语音回答 · 按个人词库读准名字 + │ + v0.4.0 看 多模态输入:语音 + 屏幕、图像、视频 + │ 与本地知识库融合上下文 + │ 智能补全 · 实时意图识别 + │ + v1.0.0 对话 全双工打断插话 · 跨设备接力 +``` + +每个版本都遵守同一条规则:默认全部在本机运行,云端模型按阶段可选。 + +### v0.1.0 · 听:语音输入法(macOS) + +macOS 上的语音输入法:用说代替打字,在任何应用里都能用。 + +- **语音输入**:按住或切换全局快捷键,浮窗实时显示草稿,确认一次即写入光标处。如果说话时焦点切走了,文字保留在浮窗里供复制。 +- **口语清理**:去掉语气词和不流畅的部分(“uh”“um”“嗯”“那个”),自我更正只保留最终说法(“周二,不对,周三”→“周三”),并自动加标点、分段。 +- **实时翻译**:说一种语言,写入另一种语言。支持多语言,以中译英为首要评测方向。原文与译文并排显示,修改原文会重新翻译。 +- **总结**:把一长段口述或选中的文字变成简短摘要、要点列表或通顺的书面稿。 +- **本地知识库**:个人词库收录名字、术语和热词,提升识别与翻译准确度;本地的笔记和文档文件夹在本机建立索引,作为上下文。 +- **按应用切换风格**:为不同应用预设风格,比如聊天随意、邮件正式、终端和代码编辑器保留原话。 +- **选中文字语音改写**:选中文字后说“短一点”“正式一点”或“翻译成英文”。 +- **本地历史**:可搜索的听写历史只存在本机,可一键重新写入或删除。 +- **模型管理**:下载、切换、删除本地 ASR 和 LLM 模型,并查看每个阶段在哪里运行。 +- **免手动收听**:不用按快捷键,语音活动检测自动找到每句话的起止,说话时实时显示文字。 +- **语音问答与追问**:用语音提问,得到文字回答。会话保留上下文,可以接着追问。v0.3.0 加入 TTS 后可以用语音回答。 +- **执行前先确认的工具**:OpenVoice 是 MCP 客户端。只读工具直接运行;其他工具要等你点击或说“是”才执行,不回应即视为拒绝。 + +平台:Apple Silicon 的 macOS。 + +### v0.2.0 · 会议(Windows、HarmonyOS) + +会议还在进行时就能跟上。 + +- **实时会议转写**:同时采集麦克风和系统音频,显示双语字幕。 +- **说话人区分**:在整场会议中标注谁说了什么;在本人同意后注册声纹,标注即可显示名字。标注仅供参考,不能用来授权任何操作。 +- **实时总结**:议题列表随讨论滚动更新。 +- **会议纪要**:会议结束后输出议题、决定、行动项、负责人和期限。每一条都能跳回原话,没有明确点名的负责人留空。 +- **会议记忆**:确认后的纪要存入本地知识库,可以跨多场会议提问。 +- **音视频文件**:转写并总结已有的录音和录像。 +- **先征得同意**:录音时有明显的提示,开启会议模式前提醒征得参会者同意。 + +平台:新增 Windows 和 HarmonyOS。 + +### v0.3.0 · 说 -本地 Personal Host 统一管理语音会话、持久任务、模型路由、 -设备注册、本地模型 workers 与存储(SQLite)。 -各子系统见 `docs/subsystems/`,每个子系统一篇文档。 +用自然、贴切的声音读给你听。 + +- **情感化朗读**:有声书(EPUB、TXT)、新闻、文章、论文和邮件,标题、正文、引文和对话各用合适的语气。 +- **什么都能读**:朗读当前选中的内容或整个网页。 +- **收听控制**:调整语速和音色,按段落跳转,从上次停下的地方继续听,重启后也不丢进度。 +- **定时播报**:从你授权的新闻源、论文订阅或邮件摘要生成播报。 +- **语音回答**:用语音回答关于本地知识库的问题。 +- **按个人词库发音**:你的名字和术语都能读对。 + +### v0.4.0 · 看 + +把语音和屏幕上的内容结合起来,理解你真正的意思。 + +- **多模态输入**:把语音和屏幕、图像、视频结合起来,比如“总结这张图表”“回复这封邮件”“这张截图哪里有问题?”。 +- **上下文融合**:语音、当前应用、选中内容、屏幕内容和本地知识库合成一个请求上下文,私密上下文只交给本地模型。 +- **智能补全**:根据你自己的写作和知识,在你说话时建议句子或短语的后半部分。 +- **实时意图识别**:边说边区分听写、指令和提问,再交给对应的操作或工具。 + +### 迈向 v1.0.0 · 对话 + +- **全双工打断插话**:助手边说边听。说“停”“上一段”或“这是什么意思?”,它立即停下、回答,然后继续。 +- **跨设备接力**:在手机上从桌面停下的地方继续听长内容。 + +## 状态 + +**v0.1.0(听)开发中。** v0.1.0 的 Host 正在 [#3](https://github.com/thinkflowlab/openvoice/pull/3) 中评审,全部在一台 Mac 上用本地模型运行,数据不出本机。 + +| v0.1.0 功能 | 进度 | +| --- | --- | +| 语音输入 | 🟡 Host 接口已完成:支持 HTTP 和流式 WebSocket 听写。原生 macOS 应用(快捷键、浮窗、写入光标处)尚未开始。 | +| 语气词与口语清理 | 🟢 清理时保留原说话语言;翻译前先去掉语气词(um、uh、呃、嗯)。 | +| 实时翻译 | 🟢 本地翻译在听写之后约增加 0.2–0.3 秒。 | +| 总结 | ⚪ 未开始 | +| 本地知识库与个人词库 | ⚪ 未开始 | +| 按应用切换风格、选中文字语音改写、本地历史 | ⚪ 未开始 | +| 模型管理 | 🟡 每个阶段路由到配置中指定的本地 OpenAI 兼容模型服务,换模型无需改代码;尚无界面。 | +| 免手动收听 | 🟢 Silero VAD 自动断句,说话时实时显示文字。 | +| 语音问答与追问 | 🟢 会话保留上下文。v0.3.0 加入 TTS 之前回答为文字。 | +| 执行前先确认的工具 | 🟢 MCP 客户端,支持点击或语音确认;示例服务支持时间、快捷指令、打开链接和提醒事项。 | + +🟢 已完成,评审中 · 🟡 部分完成 · ⚪ 未开始 + +[#3](https://github.com/thinkflowlab/openvoice/pull/3) 还提前开始了 v0.2.0 的工作:可选的说话人标注和声纹注册。 + +在 M1 Max 上实测(模型已预热):听写约 215–320 毫秒;免手动模式下,一句话说完后约 0.5–0.6 秒开始回答。评测得分:口语清理 16/16,问答 24/24,工具选择 10/10。 ## 文档 - `docs/product-definition.zh-CN.md` — 产品定义、目标人群、整体架构与开发路标(English: `docs/product-definition.md`) - `docs/reference.md` — 配置 / CLI / API 参考 - `docs/integrating.md` — 作为输入法或 SDK 接入 OpenVoice -- `docs/subsystems/` — 每个子系统一篇文档 - `docs/code-standards.md` — 代码规范 - -## 状态 - -空骨架。文档目录结构参考 yetone/magpie。 diff --git a/docs/architecture-overview-dark.svg b/docs/architecture-overview-dark.svg new file mode 100644 index 0000000..cbe0ae7 --- /dev/null +++ b/docs/architecture-overview-dark.svg @@ -0,0 +1,6 @@ + +OpenVoice architecture +Endpoints (macOS, Windows, HarmonyOS; mobile later) stream to an on-device Personal Host with voice processing, context and memory, and agent orchestration layers, including MCP tools that ask before acting. Inference runs locally on vLLM-Omni by default; cloud inference needs per-stage consent. Personal data stays on the device. + +OpenVoice architectureEndpointsmacOSv0.1Windowsv0.2HarmonyOSv0.2MobilelaterAudio captureHotkey & overlayInsert into appScreen contextHTTPWSPersonal Host — on-device agent runtimeVAD · segmentationStreaming ASRSpeaker labelsTTS outputv0.3Voice processingPersonal lexiconSession memoryKnowledge baseHandoff contextv1.0Context & memoryClean-up · translationSummary · app stylesMCP tools · ask firstSkill registryPlanner · durable jobsRouter · stage consentAgent orchestrationAgent workflow engineInferenceLocalvLLM-OmnidefaultCloudModel APIsoptionalper-stage consentDevice boundaryStays on your deviceLexicon · voice profile · knowledge base · history · credentials (OS keychain)Leaves only with your consentAuthorized per stage · only the selected audio or text · revocable + diff --git a/docs/architecture-overview-dark.zh-CN.svg b/docs/architecture-overview-dark.zh-CN.svg new file mode 100644 index 0000000..1f32dbf --- /dev/null +++ b/docs/architecture-overview-dark.zh-CN.svg @@ -0,0 +1,6 @@ + +OpenVoice 架构 +端侧(macOS、Windows、HarmonyOS,移动端后续)经流式连接到本地 Personal Host;Host 内依次为语音处理、上下文与记忆、Agent 编排(含执行前先确认的 MCP 工具);默认走本地 vLLM-Omni 推理,云端推理需逐阶段授权。个人数据留在本地。 + +OpenVoice 架构端侧macOSv0.1Windowsv0.2HarmonyOSv0.2移动端后续音频采集快捷键与浮窗写入应用屏幕上下文HTTPWSPersonal Host — 本地 Agent 运行时VAD 与断句流式 ASR说话人标注TTS 输出v0.3语音处理个人词库会话记忆本地知识库接力上下文v1.0上下文与记忆清理 · 翻译总结 · 应用风格MCP 工具 · 先确认技能注册任务规划 · 持久任务模型路由 · 逐阶段授权Agent 编排Agent 工作流引擎推理本地vLLM-Omni默认云端模型 API可选逐阶段授权设备边界留在本地个人词库 · 声音档案 · 知识库 · 历史 · 凭据(系统钥匙串)经你授权才出端按阶段授权 · 只发送选中的音频或文字 · 可随时撤销 + diff --git a/docs/architecture-overview.svg b/docs/architecture-overview.svg new file mode 100644 index 0000000..473a757 --- /dev/null +++ b/docs/architecture-overview.svg @@ -0,0 +1,6 @@ + +OpenVoice architecture +Endpoints (macOS, Windows, HarmonyOS; mobile later) stream to an on-device Personal Host with voice processing, context and memory, and agent orchestration layers, including MCP tools that ask before acting. Inference runs locally on vLLM-Omni by default; cloud inference needs per-stage consent. Personal data stays on the device. + +OpenVoice architectureEndpointsmacOSv0.1Windowsv0.2HarmonyOSv0.2MobilelaterAudio captureHotkey & overlayInsert into appScreen contextHTTPWSPersonal Host — on-device agent runtimeVAD · segmentationStreaming ASRSpeaker labelsTTS outputv0.3Voice processingPersonal lexiconSession memoryKnowledge baseHandoff contextv1.0Context & memoryClean-up · translationSummary · app stylesMCP tools · ask firstSkill registryPlanner · durable jobsRouter · stage consentAgent orchestrationAgent workflow engineInferenceLocalvLLM-OmnidefaultCloudModel APIsoptionalper-stage consentDevice boundaryStays on your deviceLexicon · voice profile · knowledge base · history · credentials (OS keychain)Leaves only with your consentAuthorized per stage · only the selected audio or text · revocable + diff --git a/docs/architecture-overview.zh-CN.svg b/docs/architecture-overview.zh-CN.svg new file mode 100644 index 0000000..1e47181 --- /dev/null +++ b/docs/architecture-overview.zh-CN.svg @@ -0,0 +1,6 @@ + +OpenVoice 架构 +端侧(macOS、Windows、HarmonyOS,移动端后续)经流式连接到本地 Personal Host;Host 内依次为语音处理、上下文与记忆、Agent 编排(含执行前先确认的 MCP 工具);默认走本地 vLLM-Omni 推理,云端推理需逐阶段授权。个人数据留在本地。 + +OpenVoice 架构端侧macOSv0.1Windowsv0.2HarmonyOSv0.2移动端后续音频采集快捷键与浮窗写入应用屏幕上下文HTTPWSPersonal Host — 本地 Agent 运行时VAD 与断句流式 ASR说话人标注TTS 输出v0.3语音处理个人词库会话记忆本地知识库接力上下文v1.0上下文与记忆清理 · 翻译总结 · 应用风格MCP 工具 · 先确认技能注册任务规划 · 持久任务模型路由 · 逐阶段授权Agent 编排Agent 工作流引擎推理本地vLLM-Omni默认云端模型 API可选逐阶段授权设备边界留在本地个人词库 · 声音档案 · 知识库 · 历史 · 凭据(系统钥匙串)经你授权才出端按阶段授权 · 只发送选中的音频或文字 · 可随时撤销 + diff --git a/docs/architecture.svg b/docs/architecture.svg deleted file mode 100644 index 3b67b00..0000000 --- a/docs/architecture.svg +++ /dev/null @@ -1,66 +0,0 @@ - -OpenVoice Layered Architecture -Five layers: interaction, orchestration, models, inference runtime and local data. The model layer (audio front-end, ASR, LLM, TTS, Embedding) is the capability core; inference runs locally on vLLM-Omni by default, with cloud models optional under user consent. - - - -OpenVoice Layered Architecture -Model (swappable) -Control logic -Cloud (optional) - - - -InteractionDesktop · Mobile -Hotkey & OverlayPush-to-talk · live draft -Review PanelSource ↔ translation -Insert into AppConfirm, insert once -Meeting & BriefingMinutes · schedules -Mobile (M4)Cross-device handoff - - - -OrchestrationLocal, resident -Duplex Session ControllerState machine · barge-in · resume -Task OrchestratorDictate · translate · meet · brief · Q&A -Model RouterLocal first · consent · timeout fallback - - - -ModelsCapability coreLocal or cloudAll swappable -Voice in → hear → understand → think → speak → voice out; Embedding gives the LLM personal memory - -Audio Front-endHEAREcho cancel · denoiseVAD onset / endpointaudio → clean audio - -ASRUNDERSTANDStreaming draft → finalHotwords · punctuationaudio → text - -LLMTHINKTranslate · polishSummarize · Q&Atext → text - -TTSSPEAKEmotive · own voiceStreaming synthesistext → speech - -EmbeddingREMEMBERIndex knowledge baseRetrieve contexttext → vector - -Retrieved context → LLM - - - -InferenceRuntimeDriven by router -vLLM-Omni Local Inference (default)ASR · LLM · TTS · Embedding served together · streaming I/O · omni-modal scheduling -Cloud Model APIs (optional)Per-stage consent · location shown - - - -Local DataStays on device -Personal LexiconHotwords · glossary -Voice ProfileAccent · voice · speed -Knowledge BaseNotes · docs · vectors -Session StatePosition · history -CredentialsOS credential store - diff --git a/docs/architecture.zh-CN.svg b/docs/architecture.zh-CN.svg deleted file mode 100644 index 3ad0c42..0000000 --- a/docs/architecture.zh-CN.svg +++ /dev/null @@ -1,66 +0,0 @@ - -OpenVoice 分层架构 -五层架构:交互层、编排层、模型层、推理运行时、本地数据层。模型层包含音频前端模型、ASR、LLM、TTS 与 Embedding,是产品能力核心;推理默认在本地,云端模型经授权可选。 - - - -OpenVoice 分层架构 -模型(可替换) -控制逻辑 -云端可选 - - - -交互层桌面 · 移动 -快捷键与浮窗按住说话 · 实时草稿 -校对面板原文 / 译文对照 -目标应用写入确认后一次上屏 -会议与播报界面纪要 · 定时播报 -移动端(M4)跨端接力收听 - - - -编排层本地常驻 -全双工会话控制器状态机 · 起声暂停 · 插话判定 · 恢复 -任务编排听写 · 翻译 · 会议 · 播报 · 问答 -模型路由本地优先 · 授权检查 · 超时降级 - - - -模型层产品能力核心本地 / 云端均可替换 -语音进 → 听清 → 听懂 → 思考 → 表达 → 语音出;Embedding 为 LLM 提供个人记忆 - -音频前端听清回声消除 · 降噪VAD 起声 / 端点音频 → 净化音频 - -ASR 语音识别听懂流式草稿 → 定稿热词 · 标点音频 → 文字 - -LLM 大语言模型思考翻译 · 纠错润色会议摘要 · 问答文字 → 文字 - -TTS 语音合成表达情感语气 · 个人音色流式分段合成文字 → 声音 - -Embedding记忆知识库向量化相关片段检索文字 → 向量 - -检索上下文注入 LLM - - - -推理运行时由模型路由调度 -vLLM-Omni 本地推理引擎(默认)ASR · LLM · TTS · Embedding 统一服务化 · 流式输入输出 · 全模态调度 -云端模型 API(可选)用户逐项授权 · 界面标明处理位置 - - - -本地数据层不出本机 -个人词库热词 · 术语表 -语音偏好口音适配 · 音色 · 语速 -本地知识库纪要 · 文档 · 向量索引 -会话与进度播放位置 · 历史 -凭据存于系统凭据库 - diff --git a/docs/assets/openvoice-mark.svg b/docs/assets/openvoice-mark.svg new file mode 100644 index 0000000..09550a7 --- /dev/null +++ b/docs/assets/openvoice-mark.svg @@ -0,0 +1 @@ + diff --git a/docs/assets/openvoice-wordmark-dark.svg b/docs/assets/openvoice-wordmark-dark.svg new file mode 100644 index 0000000..fc719a1 --- /dev/null +++ b/docs/assets/openvoice-wordmark-dark.svg @@ -0,0 +1 @@ + diff --git a/docs/assets/openvoice-wordmark.svg b/docs/assets/openvoice-wordmark.svg new file mode 100644 index 0000000..8f6fce0 --- /dev/null +++ b/docs/assets/openvoice-wordmark.svg @@ -0,0 +1 @@ + diff --git a/docs/code-standards.md b/docs/code-standards.md index 346234f..08f2101 100644 --- a/docs/code-standards.md +++ b/docs/code-standards.md @@ -1,5 +1,7 @@ # Code Standards -状态:待编写(TBD)。 +**English** · [简体中文](code-standards.zh-CN.md) -代码规范:命名、目录组织、提交信息、review 要求。 +Status: to be written (TBD). + +Code standards: naming, directory layout, commit messages and review requirements. diff --git a/docs/code-standards.zh-CN.md b/docs/code-standards.zh-CN.md new file mode 100644 index 0000000..29acd12 --- /dev/null +++ b/docs/code-standards.zh-CN.md @@ -0,0 +1,7 @@ +# Code Standards + +[English](code-standards.md) · **简体中文** + +状态:待编写(TBD)。 + +代码规范:命名、目录组织、提交信息、review 要求。 diff --git a/docs/contributors.md b/docs/contributors.md index 24d8047..7295eef 100644 --- a/docs/contributors.md +++ b/docs/contributors.md @@ -1,5 +1,7 @@ # Contributors -状态:待编写(TBD)。 +**English** · [简体中文](contributors.zh-CN.md) -如何参与贡献:提 issue、PR 流程、行为准则。 +Status: to be written (TBD). + +How to contribute: filing issues, the PR process and the code of conduct. diff --git a/docs/contributors.zh-CN.md b/docs/contributors.zh-CN.md new file mode 100644 index 0000000..9430cbd --- /dev/null +++ b/docs/contributors.zh-CN.md @@ -0,0 +1,7 @@ +# Contributors + +[English](contributors.md) · **简体中文** + +状态:待编写(TBD)。 + +如何参与贡献:提 issue、PR 流程、行为准则。 diff --git a/docs/cross-device-handoff.md b/docs/cross-device-handoff.md index f21fd9f..23e1bdf 100644 --- a/docs/cross-device-handoff.md +++ b/docs/cross-device-handoff.md @@ -1,5 +1,7 @@ # Cross-Device Handoff -状态:待编写(TBD)。 +**English** · [简体中文](cross-device-handoff.zh-CN.md) -跨设备接力:手机与桌面端在一定范围内连接时,长内容的无缝接力收听。对应 magpie 的 session-relocation,讲状态如何在设备间迁移、断线后如何恢复。 +Status: to be written (TBD). + +Cross-device handoff: when a phone and the desktop are connected nearby, long content continues seamlessly on the other device. Modelled on magpie's session relocation: how state moves between devices and how it recovers after a disconnect. Ships in v1.0.0. diff --git a/docs/cross-device-handoff.zh-CN.md b/docs/cross-device-handoff.zh-CN.md new file mode 100644 index 0000000..1f50476 --- /dev/null +++ b/docs/cross-device-handoff.zh-CN.md @@ -0,0 +1,7 @@ +# Cross-Device Handoff + +[English](cross-device-handoff.md) · **简体中文** + +状态:待编写(TBD)。 + +跨设备接力:手机与桌面端在一定范围内连接时,长内容的无缝接力收听。对应 magpie 的 session-relocation,讲状态如何在设备间迁移、断线后如何恢复。v1.0.0 交付。 diff --git a/docs/full-duplex-sequence.svg b/docs/full-duplex-sequence.svg index 2020180..f7270ee 100644 --- a/docs/full-duplex-sequence.svg +++ b/docs/full-duplex-sequence.svg @@ -30,7 +30,7 @@ text{font-family:'Segoe UI','Helvetica Neue',Arial,'Microsoft YaHei',sans-serif; ② User starts speaking (t0) ③ VAD detects speech ④ Pause now, save position §3 · 12.4 s -M4 candidate: speech onset to audible stop, P95 ≤ 300 ms +v1.0 candidate: speech onset to audible stop, P95 ≤ 300 ms ⑤ Echo-free audio ⑥ Draft → final ⑦ Real barge-in or false trigger? diff --git a/docs/full-duplex-sequence.zh-CN.svg b/docs/full-duplex-sequence.zh-CN.svg index 7cd6d20..ad1691f 100644 --- a/docs/full-duplex-sequence.zh-CN.svg +++ b/docs/full-duplex-sequence.zh-CN.svg @@ -30,7 +30,7 @@ text{font-family:'Microsoft YaHei','PingFang SC','Noto Sans CJK SC',sans-serif;f ② 用户实际开口(t0) ③ VAD 检出起声 ④ 立即暂停,记录位置 §3 · 12.4 s -M4 候选:实际起声到实际停声 P95 ≤ 300 ms +v1.0 候选:实际起声到实际停声 P95 ≤ 300 ms ⑤ 去回声音频 ⑥ 草稿 → 定稿 ⑦ 判定:有效插话还是误触发? diff --git a/docs/integrating.md b/docs/integrating.md index 27cc4cc..6534483 100644 --- a/docs/integrating.md +++ b/docs/integrating.md @@ -1,5 +1,7 @@ # Integrating OpenVoice -状态:待编写(TBD)。 +**English** · [简体中文](integrating.zh-CN.md) -如何接入 OpenVoice:作为 PC 端语音输入法、SDK 或服务调用;配置与鉴权方式。 +Status: to be written (TBD). + +How to integrate OpenVoice: as a desktop voice input method, an SDK or a service; configuration and authentication. diff --git a/docs/integrating.zh-CN.md b/docs/integrating.zh-CN.md new file mode 100644 index 0000000..728b27a --- /dev/null +++ b/docs/integrating.zh-CN.md @@ -0,0 +1,7 @@ +# Integrating OpenVoice + +[English](integrating.md) · **简体中文** + +状态:待编写(TBD)。 + +如何接入 OpenVoice:作为 PC 端语音输入法、SDK 或服务调用;配置与鉴权方式。 diff --git a/docs/model-pipeline.svg b/docs/model-pipeline.svg index 1c29184..f83299a 100644 --- a/docs/model-pipeline.svg +++ b/docs/model-pipeline.svg @@ -9,20 +9,20 @@ Drafts drive live feedback. Stable segments carry a source revision and meeting transcripts retain timestamps. -M1 Dictation +v0.1 Dictation Review source → confirm once → insert into the target app -M1 Translation +v0.1 Translation LLM translates stable segments → review alongside source → confirm insertion -M2 Meetings +v0.2 Meetings LLM drafts cited minutes → user approves → Host saves → optional local embedding index -M4 Barge-in +v1.0 Barge-in Playback command → player control. Open question → LLM answer → TTS -Content input M3 scheduled job → authorized text +Content input v0.3 scheduled job → authorized text Read the source or request a summary → synthesize by paragraph → play and track position. The mic can stay off. Private terminology and retrieved passages stay local. Cloud translation receives only selected text and target language. -M4 candidate target: actual speech onset → audible stop, P95 ≤ 300 ms. Measure VAD detection latency separately. +v1.0 candidate target: actual speech onset → audible stop, P95 ≤ 300 ms. Measure VAD detection latency separately. diff --git a/docs/model-pipeline.zh-CN.svg b/docs/model-pipeline.zh-CN.svg index 55ab998..6c7bcda 100644 --- a/docs/model-pipeline.zh-CN.svg +++ b/docs/model-pipeline.zh-CN.svg @@ -9,20 +9,20 @@ 草稿用于实时反馈;稳定分句带原文版本,会议转写同时保留时间点。 -M1 听写 +v0.1 听写 校对原文 → 确认一次 → 写入目标应用 -M1 翻译 +v0.1 翻译 LLM 翻译稳定分句 → 原译文对照 → 确认写入 -M2 会议 +v0.2 会议 LLM 草拟带出处的纪要 → 用户确认 → Host 保存 → 可选本地向量索引 -M4 插话 +v1.0 插话 播放指令直接执行;开放式提问 → LLM 回答 → TTS -内容入口 M3 定时任务 → 获准读取的文本 +内容入口 v0.3 定时任务 → 获准读取的文本 直接读取原文或按需生成摘要 → 分段 TTS → 播放并保存位置。麦克风可以保持关闭。 私人术语和知识片段仅用于本地推理。云翻译只接收选定原文和目标语言。 -M4 候选目标:用户实际起声 → 实际停声,P95 ≤ 300 ms;VAD 检测耗时单独测量。 +v1.0 候选目标:用户实际起声 → 实际停声,P95 ≤ 300 ms;VAD 检测耗时单独测量。 diff --git a/docs/product-definition.md b/docs/product-definition.md index eeb4673..a950eb2 100644 --- a/docs/product-definition.md +++ b/docs/product-definition.md @@ -7,7 +7,7 @@ | Product | OpenVoice | | Positioning | Agent-native voice personal agent: an open-source, local-first, full-duplex “voice sprite” | | Foundation | **Powered by vLLM-Omni** | -| Phase 1 scope (M1) | Desktop dictation + real-time translation (multilingual; Chinese → English is the primary evaluated direction) | +| First release (v0.1.0) | Listen on macOS: voice input, filler clean-up, real-time translation (multilingual; Chinese → English is the primary evaluated direction), summary and a local knowledge base | --- @@ -15,9 +15,9 @@ ### 1.1 Positioning -OpenVoice aims to be an agent-native voice personal agent: open-source, local-first and full-duplex. The first release (M1, i.e. Phase 1) focuses on desktop dictation and real-time translation, with Chinese → English as the primary direction. Users hold a hotkey, speak, review the text in an overlay, and insert the original or translation into a supported app. +OpenVoice aims to be an agent-native voice personal agent: open-source, local-first and full-duplex. The first release, v0.1.0 (Listen), ships on macOS. It covers voice input with filler clean-up, real-time translation (Chinese → English is the primary direction), summaries and a local knowledge base. Users hold a hotkey or talk hands-free, review the text in an overlay, and insert the original or translation into a supported app. -Later releases will add meeting minutes, long-form reading and full-duplex interaction. In full duplex, the assistant keeps listening during playback so users can rewind, ask a question and resume where they left off. +Later releases add meetings and more platforms (v0.2.0), expressive reading (v0.3.0), multimodal input (v0.4.0), then full-duplex interaction (v1.0.0). In full duplex, the assistant keeps listening during playback so users can rewind, ask a question and resume where they left off. ### 1.2 Vision @@ -25,14 +25,18 @@ Later releases will add meeting minutes, long-form reading and full-duplex inter ### 1.3 Capability Map -| Capability | User value | Main models | Phase | +| Capability | User value | Main models | Release | | --- | --- | --- | --- | -| Voice input | Dictate into supported text fields instead of typing | ASR (+ optional LLM clean-up) | **M1** | -| Real-time translation | Speak Chinese, get English ready to send | ASR + LLM | **M1** | -| Meeting summaries | Live transcription with topics, decisions and action items | ASR + LLM (optional indexing after save) | M2 | -| Expressive reading & scheduled briefings | News, papers, email and books read in a fitting tone | LLM + TTS | M3 | -| Full-duplex barge-in | Say “stop”, “go back” or “what does that mean?” mid-playback | VAD/AEC + ASR + LLM + TTS | M4 | -| Cross-device handoff | Continue long content seamlessly from desktop to phone | — (protocol & clients) | M4 | +| Voice input | Dictate into supported text fields instead of typing | ASR (+ optional LLM clean-up) | **v0.1** | +| Clean-up | Drop fillers (“uh”, “um”, “嗯”) and keep only the final version of a self-correction | LLM (+ rule pass for fillers) | **v0.1** | +| Real-time translation | Speak Chinese, get English ready to send | ASR + LLM | **v0.1** | +| Summary & local knowledge base | Condense a dictation; your lexicon and local notes improve every result | LLM + Embedding | **v0.1** | +| Hands-free answers & tools | Ask by voice and follow up; MCP tools ask before acting | VAD + ASR + LLM | **v0.1** | +| Meeting summaries | Live transcription with speaker labels, topics, decisions and action items | ASR + diarization + LLM (optional indexing after save) | v0.2 | +| Expressive reading & scheduled briefings | News, papers, email and books read in a fitting tone | LLM + TTS | v0.3 | +| Multimodal understanding | Combine voice with the screen, images and video; smart completion and live intent | ASR + vision-language model + LLM | v0.4 | +| Full-duplex barge-in | Say “stop”, “go back” or “what does that mean?” mid-playback | VAD/AEC + ASR + LLM + TTS | v1.0 | +| Cross-device handoff | Continue long content seamlessly from desktop to phone | — (protocol & clients) | v1.0 | ### 1.4 Product Principles @@ -48,7 +52,7 @@ Later releases will add meeting minutes, long-form reading and full-duplex inter | --- | --- | --- | | Where data goes | Audio uploaded to the cloud by default | Stays on device; cloud use needs per-stage consent | | Personalization | Generic, account-level models | Local lexicon, accent profile and knowledge base that grow over time | -| Interaction | Turn-based; playback can't be interrupted | Planned for M4: listens while speaking; interrupt, rewind, ask | +| Interaction | Turn-based; playback can't be interrupted | Planned for v1.0: listens while speaking; interrupt, rewind, ask | | Openness | Closed source, fixed models | Open source; models and deployment freely combined | | Offline | Stops working without a network | Dictation and translation work offline once models are downloaded | @@ -58,18 +62,18 @@ Later releases will add meeting minutes, long-form reading and full-duplex inter | Group | Typical scenarios | Core pain point | What “good” looks like | First covered | | --- | --- | --- | --- | --- | -| **PC users who'd rather not type** | Dictating chats, email, notes and documents | Typing is slow; privacy concerns with cloud input methods | Accurate recognition and names, text lands at the cursor, easy to fix | M1 | -| **Cross-language professionals** | Multinational teams; sending English messages in cross-border meetings | Hard to turn speech into polished written English quickly | Numbers, dates, negations and names are right and can be checked against the source | M1 | -| **Meeting note-takers** | Recording and organizing internal and cross-border meetings | Can't keep up while listening; write-ups take too long | Keeps pace, every item traces back to what was said, no invented owners | M2 | -| **Long-form listeners** | News, papers and books while commuting or doing chores | Little reading time; robotic narration that can't be interrupted | Natural tone, interruptible, replayable, progress never lost | M3–M4 | +| **PC users who'd rather not type** | Dictating chats, email, notes and documents | Typing is slow; privacy concerns with cloud input methods | Accurate recognition and names, text lands at the cursor, easy to fix | v0.1 | +| **Cross-language professionals** | Multinational teams; sending English messages in cross-border meetings | Hard to turn speech into polished written English quickly | Numbers, dates, negations and names are right and can be checked against the source | v0.1 | +| **Meeting note-takers** | Recording and organizing internal and cross-border meetings | Can't keep up while listening; write-ups take too long | Keeps pace, every item traces back to what was said, no invented owners | v0.2 | +| **Long-form listeners** | News, papers and books while commuting or doing chores | Little reading time; robotic narration that can't be interrupted | Natural tone, interruptible, replayable, progress never lost | v0.3–v1.0 | -**Primary Phase 1 users**: the first two groups — knowledge workers who write a lot every day and often need Chinese-to-English translation. +**Primary v0.1 users**: the first two groups — knowledge workers who write a lot every day and often need Chinese-to-English translation. --- ## 3. Standard Usage Scenarios -### Scenario A · Dictate into a supported app (M1) +### Scenario A · Dictate into a supported app (v0.1) 1. Put the cursor in an agent chat box, email or document, **hold the hotkey** and speak; 2. An overlay shows the live draft; **release the hotkey** and it is segmented and punctuated automatically; @@ -77,14 +81,14 @@ Later releases will add meeting minutes, long-form reading and full-duplex inter > Design note: the draft only updates inside the overlay, so the target app never receives duplicate text. If focus changes while recording, the result stays in the overlay with a copy button and is never typed into another window. -### Scenario B · Speak Chinese, send written English in a meeting (M1) +### Scenario B · Speak Chinese, send written English in a meeting (v0.1) 1. Choose “Chinese → English” and say: “交付改到周五,预算仍然是十五万”; 2. The overlay shows the source on top and the translation below: *“Delivery is moved to Friday; the budget remains 150,000.”*; 3. The user corrects “十五万” (150,000) to “五十万” (500,000) in the source, and the translation is regenerated from the new version; 4. After checking, the user confirms and the English is inserted into the meeting chat. If translation fails, the source can still be copied. -### Scenario C · Turn a discussion into minutes (M2) +### Scenario C · Turn a discussion into minutes (v0.2) 1. With participants' consent, the host starts meeting mode and picks the audio source and languages; 2. The system transcribes continuously with bilingual captions, and the topic list updates as the discussion moves on; @@ -92,14 +96,14 @@ Later releases will add meeting minutes, long-form reading and full-duplex inter 4. Example rules: “Let's revisit the budget on Friday” is recorded as an open item; only explicit agreement counts as a decision; owners are left blank unless clearly named; 5. After review, the minutes are saved to the local knowledge base. -### Scenario D · Scheduled briefings you can interrupt (M3–M4) +### Scenario D · Scheduled briefings you can interrupt (v0.3–v1.0) 1. Schedule an 8:00 briefing from authorized news feeds, paper subscriptions or email digests; 2. The assistant adjusts pace, pauses and tone for headlines, body text and quotes; 3. Say “**go back**” and it stops immediately and rereads the previous paragraph from the start; 4. Ask “**what does that acronym mean?**” and it pauses, answers, then resumes from where it stopped. -### Scenario E · Hand off from desktop to phone (M4) +### Scenario E · Hand off from desktop to phone (v1.0) 1. Before heading out, click “**Continue on phone**”; 2. The desktop sends the content ID, version and paragraph position to a paired phone on the same LAN; @@ -109,29 +113,32 @@ Later releases will add meeting minutes, long-form reading and full-duplex inter ## 4. Architecture -### 4.1 Runtime Boundaries and Ownership +### 4.1 Layers and Ownership -![Runtime boundaries for the desktop client, Personal Host, local inference and optional cloud providers](architecture.svg) +![OpenVoice architecture: endpoints stream to an on-device Personal Host with voice processing, context and memory, and agent orchestration layers; inference runs locally on vLLM-Omni by default, and cloud inference needs per-stage consent](architecture-overview.svg) -| Runtime | Responsibilities and state | +| Layer | Responsibilities and state | | --- | --- | -| Desktop client | Owns microphone access, hotkeys, the overlay and app insertion. The audio front-end runs here. In M4 it uses actual playback audio as the echo reference and pauses local playback on speech detection. | -| Personal Host (on device) | Owns sessions and turns, persists jobs and playback positions, and recovers scheduled work after restart. The device registry checks pairing, permissions and revocation before handoff. The router checks task data, stage consent and provider before assembling a request. Storage saves approved minutes locally. Keys live in the OS credential store. | -| Local inference service | Model workers provide ASR and LLM inference, with TTS and embeddings in later phases. vLLM-Omni is the default runtime. Device compatibility, streaming support and resource use need validation for each candidate. | +| Endpoints | macOS first (v0.1), Windows and HarmonyOS (v0.2), iOS and Android later. Own microphone access, hotkeys, the overlay, app insertion and screen context. The audio front-end runs here; from v1.0 it uses actual playback audio as the echo reference and pauses local playback on speech detection. | +| Personal Host · voice processing | VAD and segmentation, streaming ASR, opt-in speaker labels and voiceprints, and speech output with TTS from v0.3. | +| Personal Host · context & memory | Personal lexicon, session memory, the local knowledge base, and cross-device context for handoff (v1.0). Approved minutes are saved here. | +| Personal Host · agent orchestration | Clean-up, translation and summary skills; app-aware rules; MCP tools that ask before acting; task planning and durable jobs that recover after restart. The model router checks task data, stage consent and provider before assembling a request. The device registry checks pairing, permissions and revocation before handoff. Keys live in the OS credential store. | +| Inference | Local by default: model workers serve ASR and LLM, with TTS, embeddings and vision models in later releases. vLLM-Omni is the default runtime, and any OpenAI-compatible local server can be plugged in. Device compatibility, streaming support and resource use need validation for each candidate. Cloud model APIs are optional and authorized per stage. | See the [subsystem map](subsystems/README.md) for ownership. -### 4.2 Model Roles: Hear → Understand → Think → Speak → Remember +### 4.2 Model Roles: Hear → Understand → See → Think → Speak → Remember | Model | Role | Input → output | What it does in the product | Local candidates | Local execution location | Key metrics | | --- | --- | --- | --- | --- | --- | --- | | **Audio front-end** (AEC / denoise / VAD) | Hear | Raw audio → clean audio + speech-onset events | Removes the assistant's own playback echo and detects when the user starts talking; **the trigger for full duplex** | WebRTC AEC3, Silero VAD, FSMN-VAD | Client | Barge-in detection rate, echo false triggers, detection latency | | **ASR** speech recognition | Understand | Audio stream → draft / final text | All of dictation; sets input quality for translation, meetings and Q&A | SenseVoice, streaming Paraformer, Whisper turbo | Local inference service | Character error rate, first-token latency, name recall | +| **VLM** vision-language model (v0.4) | See | Screen, image or video + text → text | Understands what is on screen for multimodal requests and smart completion | Qwen-VL family, small quantized | Local inference service | Grounding accuracy, latency | | **LLM** large language model | Think | Text + context → text | Translation, spoken-to-written, correction, meeting summaries, Q&A, briefing scripts | Qwen family 4B–8B quantized; cloud LLMs optional | Local inference service | Usable-translation rate, factual consistency, first-token latency | | **TTS** speech synthesis | Speak | Text + tone → audio stream | Expressive reading and spoken answers, with a personal voice | CosyVoice, Kokoro, etc. | Local inference service | Naturalness, misreading rate, first-packet latency | | **Embedding** | Remember | Text → vector | Indexes and retrieves the local knowledge base to give the LLM personal context | bge-m3, etc. | Local inference service | Retrieval recall | -> Candidates are evaluated in their delivery phase, starting with ASR and translation; models already supported by vLLM-Omni come first. Before locking in, check each model's license allows open-source distribution and commercial use. +> Candidates are evaluated in the release that first needs them, starting with ASR and translation; models already supported by vLLM-Omni come first. Before locking in, check each model's license allows open-source distribution and commercial use. **How personalization reaches the models**: the personal lexicon serves as both ASR hotwords and the LLM glossary; the voice profile drives ASR accent adaptation and the TTS voice; the knowledge base is retrieved through Embedding and passed to the LLM as context. All three stay on the device, and tasks that touch private knowledge are forced onto local inference. @@ -141,11 +148,11 @@ See the [subsystem map](subsystems/README.md) for ownership. | Task | Processing path | | --- | --- | -| Dictation (M1) | The hotkey starts capture. ASR updates the live draft. The user reviews the final text and confirms insertion. Light LLM editing is optional. | -| Translation (M1) | The LLM translates stable ASR segments. Each translation carries its source revision. Editing the source triggers translation again and invalidates stale replies. | -| Meetings (M2) | ASR retains timestamps. The LLM drafts minutes linked to the transcript. After review, the Host saves approved items and can index them locally with an embedding model. Discarded drafts stay out of the knowledge base. | -| Scheduled reading (M3) | A Host job reads authorized content and optionally requests a summary. TTS renders the selected text by paragraph. The client plays it and tracks position. The microphone can remain off throughout. | -| Barge-in (M4) | With barge-in enabled, capture and playback run together. Playback commands control the player directly. Spoken questions use ASR, the LLM and TTS to produce an answer. | +| Dictation (v0.1) | The hotkey starts capture. ASR updates the live draft. The user reviews the final text and confirms insertion. Light LLM editing is optional. | +| Translation (v0.1) | The LLM translates stable ASR segments. Each translation carries its source revision. Editing the source triggers translation again and invalidates stale replies. | +| Meetings (v0.2) | ASR retains timestamps. The LLM drafts minutes linked to the transcript. After review, the Host saves approved items and can index them locally with an embedding model. Discarded drafts stay out of the knowledge base. | +| Scheduled reading (v0.3) | A Host job reads authorized content and optionally requests a summary. TTS renders the selected text by paragraph. The client plays it and tracks position. The microphone can remain off throughout. | +| Barge-in (v1.0) | With barge-in enabled, capture and playback run together. Playback commands control the player directly. Spoken questions use ASR, the LLM and TTS to produce an answer. | ### 4.4 Full-Duplex Barge-in: Stop First, Understand Next, Then Respond @@ -157,7 +164,7 @@ During playback, the client pauses on detected speech and records the paragraph - **Content question.** Cancel generation and synthesis for the previous turn. Send the question and permitted passage context to the LLM. TTS speaks the first stable sentence. Playback can resume at the saved position after the answer. - **False trigger.** Keep the original turn and resume from the paused position. -Text and audio chunks carry session and turn IDs. The client discards late output from cancelled turns. The **M4 candidate target is P95 ≤ 300 ms from actual user speech onset to audible playback stopping**. Measure onset-to-VAD-event latency separately, and measure false stops and misses on speakers and headphones. +Text and audio chunks carry session and turn IDs. The client discards late output from cancelled turns. The **v1.0 candidate target is P95 ≤ 300 ms from actual user speech onset to audible playback stopping**. Measure onset-to-VAD-event latency separately, and measure false stops and misses on speakers and headphones. ### 4.5 Deployment Modes & Privacy Boundary @@ -172,6 +179,6 @@ When both stages have consent, each sends only its listed payload. Either stage ## 5. Roadmap -**M1 ships first**, with desktop dictation and Chinese-to-English translation. Later releases will add meeting transcription and structured minutes (M2), expressive reading and scheduled briefings (M3), then full-duplex barge-in and cross-device handoff (M4). +The release plan lives in the [README](../README.md#release-plan): **v0.1.0** Listen (macOS), **v0.2.0** Meetings (adds Windows and HarmonyOS), **v0.3.0** Speak, **v0.4.0** See (multimodal input), then **v1.0.0** Converse (full-duplex barge-in and cross-device handoff). -Milestones map to the phase names used elsewhere in the repo: **M1 = Phase 1 (首期)**; M2–M4 are the later phases (后期). +Earlier drafts used milestones M1–M4. M1 is v0.1.0, M2 is v0.2.0 and M3 is v0.3.0; M4 moved to v1.0.0. diff --git a/docs/product-definition.zh-CN.md b/docs/product-definition.zh-CN.md index 8d7cc61..54849c3 100644 --- a/docs/product-definition.zh-CN.md +++ b/docs/product-definition.zh-CN.md @@ -7,7 +7,7 @@ | 产品名称 | OpenVoice | | 产品定位 | Agent 原生语音个人助手:开源、本地优先、全双工的“声音精灵” | | 技术底座 | **Powered by vLLM-Omni** | -| 首期范围(M1) | 桌面端语音听写 + 实时翻译(面向多语言交流,中译英为首要评测方向) | +| 首个版本(v0.1.0) | macOS 上的“听”:语音输入、语气词清理、实时翻译(多语言,中译英为首要评测方向)、总结和本地知识库 | --- @@ -15,9 +15,9 @@ ### 1.1 定位 -OpenVoice 的目标是一款 Agent 原生的语音个人助手:开源、本地优先、支持全双工。首个版本(M1,即首期 / Phase 1)聚焦桌面听写与实时翻译,以中译英为首要方向。用户按住快捷键口述,在浮窗里核对文字,再将原文或译文写入支持的应用。 +OpenVoice 的目标是一款 Agent 原生的语音个人助手:开源、本地优先、支持全双工。首个版本 v0.1.0(听)在 macOS 上发布,包括带语气词清理的语音输入、实时翻译(以中译英为首要方向)、总结和本地知识库。用户按住快捷键或免手动口述,在浮窗里核对文字,再将原文或译文写入支持的应用。 -后续版本将支持会议纪要、长文朗读和全双工插话。全双工意味着助手在说话时仍能听见用户,用户可以要求回退、提问,再从原来的位置继续听。 +后续版本依次加入会议与更多平台(v0.2.0)、情感化朗读(v0.3.0)、多模态输入(v0.4.0),最后是全双工交互(v1.0.0)。全双工意味着助手在说话时仍能听见用户,用户可以要求回退、提问,再从原来的位置继续听。 ### 1.2 产品愿景 @@ -25,14 +25,18 @@ OpenVoice 的目标是一款 Agent 原生的语音个人助手:开源、本地 ### 1.3 核心能力全景 -| 能力 | 用户价值 | 主要依赖模型 | 交付阶段 | +| 能力 | 用户价值 | 主要依赖模型 | 版本 | | --- | --- | --- | --- | -| 语音输入法 | 不打字,在支持的输入框里口述成文 | ASR(+ 可选 LLM 纠错) | **M1** | -| 实时翻译 | 说中文,得到可直接发送的书面英文 | ASR + LLM | **M1** | -| 会议总结 | 实时转写,自动生成议题、决定、行动项 | ASR + LLM(保存后可选向量索引) | M2 | -| 情感化朗读与定时播报 | 用合适的语气读新闻、论文、邮件、长书 | LLM + TTS | M3 | -| 全双工打断与插话 | 播报中随时说“停”“上一段”“这是什么意思” | VAD/AEC + ASR + LLM + TTS | M4 | -| 跨设备接力 | 从桌面到手机无缝续听长内容 | —(协议与客户端) | M4 | +| 语音输入法 | 不打字,在支持的输入框里口述成文 | ASR(+ 可选 LLM 纠错) | **v0.1** | +| 口语清理 | 去掉“嗯”“呃”“那个”等语气词,自我更正只保留最终说法 | LLM(+ 语气词规则过滤) | **v0.1** | +| 实时翻译 | 说中文,得到可直接发送的书面英文 | ASR + LLM | **v0.1** | +| 总结与本地知识库 | 压缩长段口述;个人词库和本地笔记让结果更准 | LLM + Embedding | **v0.1** | +| 免手动问答与工具 | 用语音提问并追问;MCP 工具执行前先确认 | VAD + ASR + LLM | **v0.1** | +| 会议总结 | 实时转写并标注说话人,自动生成议题、决定、行动项 | ASR + 说话人区分 + LLM(保存后可选向量索引) | v0.2 | +| 情感化朗读与定时播报 | 用合适的语气读新闻、论文、邮件、长书 | LLM + TTS | v0.3 | +| 多模态理解 | 语音结合屏幕、图像、视频;智能补全与实时意图识别 | ASR + 视觉语言模型 + LLM | v0.4 | +| 全双工打断与插话 | 播报中随时说“停”“上一段”“这是什么意思” | VAD/AEC + ASR + LLM + TTS | v1.0 | +| 跨设备接力 | 从桌面到手机无缝续听长内容 | —(协议与客户端) | v1.0 | ### 1.4 产品原则 @@ -48,7 +52,7 @@ OpenVoice 的目标是一款 Agent 原生的语音个人助手:开源、本地 | --- | --- | --- | | 数据去向 | 音频默认上传云端 | 默认不出本机,上云需逐项授权 | | 个性化 | 账号级通用模型 | 本地个人词库、口音偏好和知识库持续积累 | -| 交互方式 | 一问一答,播报时无法打断 | M4 规划:边说边听,可打断、回退、插问 | +| 交互方式 | 一问一答,播报时无法打断 | v1.0 规划:边说边听,可打断、回退、插问 | | 开放性 | 闭源,模型固定 | 开源,模型和部署方式可自由组合 | | 离线可用 | 断网即不可用 | 模型下载后,听写和翻译可离线完成 | @@ -58,18 +62,18 @@ OpenVoice 的目标是一款 Agent 原生的语音个人助手:开源、本地 | 人群 | 典型场景 | 核心痛点 | 判断“好用”的标准 | 首次覆盖 | | --- | --- | --- | --- | --- | -| **不愿打字的 PC 用户** | 聊天、邮件、笔记、文档里口述 | 打字慢,云输入法有隐私顾虑 | 识别准、专名对,文字落在光标处,改错方便 | M1 | -| **跨语言工作的职场人** | 外企沟通、跨国会议中发英文消息 | 口语难以快速转成得体的书面外语 | 数字、日期、否定和专名准确,可对照原文核对 | M1 | -| **会议记录者** | 内部会议、跨国会议的记录与整理 | 边听边记跟不上,会后整理耗时 | 跟得上发言,条目能回溯原话,不编造责任人 | M2 | -| **长内容听众** | 通勤、家务时听资讯、论文、长书 | 阅读时间少,朗读机械、不可打断 | 语气自然,可打断、重听,进度不丢 | M3–M4 | +| **不愿打字的 PC 用户** | 聊天、邮件、笔记、文档里口述 | 打字慢,云输入法有隐私顾虑 | 识别准、专名对,文字落在光标处,改错方便 | v0.1 | +| **跨语言工作的职场人** | 外企沟通、跨国会议中发英文消息 | 口语难以快速转成得体的书面外语 | 数字、日期、否定和专名准确,可对照原文核对 | v0.1 | +| **会议记录者** | 内部会议、跨国会议的记录与整理 | 边听边记跟不上,会后整理耗时 | 跟得上发言,条目能回溯原话,不编造责任人 | v0.2 | +| **长内容听众** | 通勤、家务时听资讯、论文、长书 | 阅读时间少,朗读机械、不可打断 | 语气自然,可打断、重听,进度不丢 | v0.3–v1.0 | -**首期主力用户**:前两类人群,即每天需要大量输入文字、经常需要中译英的知识工作者。 +**v0.1 主力用户**:前两类人群,即每天需要大量输入文字、经常需要中译英的知识工作者。 --- ## 3. 标准使用方案 -### 场景 A · 在支持的应用中听写(M1) +### 场景 A · 在支持的应用中听写(v0.1) 1. 将光标放在智能体对话框、邮件、文档的输入框中,**按住快捷键**说话; 2. 浮窗实时显示草稿,**松开快捷键**后自动断句、加标点; @@ -77,14 +81,14 @@ OpenVoice 的目标是一款 Agent 原生的语音个人助手:开源、本地 > 设计要点:草稿只在浮窗中更新,避免目标应用收到重复文字。录音期间如果焦点切换,结果保留在浮窗并提供复制,不会写进其他窗口。 -### 场景 B · 会议中口述生成书面英文(M1) +### 场景 B · 会议中口述生成书面英文(v0.1) 1. 选择“中文 → 英文”,口述:“交付改到周五,预算仍然是十五万”; 2. 浮窗上方显示原文,下方显示译文 *“Delivery is moved to Friday; the budget remains 150,000.”*; 3. 用户把原文中的“十五万”改为“五十万”,译文随之按新版本重新生成; 4. 核对后确认,将英文写入会议聊天框。翻译失败时仍可复制原文。 -### 场景 C · 从会议讨论生成纪要(M2) +### 场景 C · 从会议讨论生成纪要(v0.2) 1. 主持人在取得参会者同意后开启会议模式,选择音频来源和语言; 2. 系统持续转写并显示双语字幕,议题列表随讨论滚动更新; @@ -92,14 +96,14 @@ OpenVoice 的目标是一款 Agent 原生的语音个人助手:开源、本地 4. 规则示例:“周五再讨论预算”记为待讨论;只有明确达成一致时才记为“决定”;没有明确负责人时该项留空。 5. 复核后保存到本地知识库。 -### 场景 D · 定时播报并随时打断(M3–M4) +### 场景 D · 定时播报并随时打断(v0.3–v1.0) 1. 设置每天 8:00 播报已授权的新闻源、论文订阅或邮件摘要; 2. 助手按标题、正文、引文分别调整语速、停顿和语气朗读; 3. 用户说“**上一段**”,助手立即停止,从上一段开头重读; 4. 用户问“**这个缩写什么意思**”,助手暂停播报回答问题,答完从刚才的位置继续读。 -### 场景 E · 桌面到手机接力(M4) +### 场景 E · 桌面到手机接力(v1.0) 1. 起身出门前点击“**在手机继续**”; 2. 桌面把内容标识、版本和段落位置发给同一局域网内已配对的手机; @@ -109,29 +113,32 @@ OpenVoice 的目标是一款 Agent 原生的语音个人助手:开源、本地 ## 4. 整体架构 -### 4.1 运行边界与职责 +### 4.1 分层与职责 -![桌面客户端、本机 Personal Host、本地推理服务与可选云服务的运行边界](architecture.zh-CN.svg) +![OpenVoice 架构:端侧经流式连接到本地 Personal Host,Host 内为语音处理、上下文与记忆、Agent 编排三层;默认在本地 vLLM-Omni 推理,云端推理需逐阶段授权](architecture-overview.zh-CN.svg) -| 运行位置 | 职责与状态归属 | +| 层 | 职责与状态归属 | | --- | --- | -| 桌面客户端 | 管理麦克风、快捷键、浮窗和目标应用写入。音频前端在客户端运行;M4 播放期间以实际送播音频为回声参考,在检测到起声时立即暂停本地播放。 | -| Personal Host(本机) | 持有会话与轮次,持久化任务和播放进度,重启后恢复定时任务。设备注册表校验接力设备的配对、授权与吊销状态。模型路由在请求组装前检查任务数据、阶段授权和供应商。已确认的纪要由存储模块写入本地知识库,凭据保存在系统凭据库。 | -| 本地推理服务 | 通过模型 worker 提供 ASR、LLM,以及后续阶段的 TTS、Embedding。默认推理底座为 vLLM-Omni,具体模型的设备兼容性、流式模式与资源需求须逐项验证。 | +| 端侧 | macOS 首发(v0.1),Windows 与 HarmonyOS(v0.2),iOS 与 Android 后续。管理麦克风、快捷键、浮窗、目标应用写入和屏幕上下文。音频前端在端侧运行;从 v1.0 起,播放期间以实际送播音频为回声参考,检测到起声时立即暂停本地播放。 | +| Personal Host · 语音处理 | VAD 与断句、流式 ASR、可选的说话人标注与声纹,以及从 v0.3 起的 TTS 语音输出。 | +| Personal Host · 上下文与记忆 | 个人词库、会话记忆、本地知识库,以及跨设备接力用的上下文(v1.0)。已确认的纪要存入这里。 | +| Personal Host · Agent 编排 | 清理、翻译、总结等技能;按应用的规则;执行前先确认的 MCP 工具;任务规划与重启后可恢复的持久任务。模型路由在组装请求前检查任务数据、阶段授权和供应商;设备注册表在接力前校验配对、授权与吊销状态。凭据保存在系统凭据库。 | +| 推理 | 默认本地:模型 worker 提供 ASR、LLM,后续版本加入 TTS、Embedding 和视觉模型。默认推理底座为 vLLM-Omni,也可接入任何兼容 OpenAI 接口的本地模型服务;具体模型的设备兼容性、流式模式与资源需求须逐项验证。云端模型 API 可选,按阶段授权。 | 子系统及职责见[架构索引](subsystems/README.md)。 -### 4.2 模型职责:听清 → 听懂 → 思考 → 表达 → 记忆 +### 4.2 模型职责:听清 → 听懂 → 看懂 → 思考 → 表达 → 记忆 | 模型 | 比喻 | 输入 → 输出 | 在产品中的作用 | 本地候选 | 本地执行位置 | 关键指标 | | --- | --- | --- | --- | --- | --- | --- | | **音频前端**(AEC / 降噪 / VAD) | 听清 | 原始音频 → 净化音频 + 起声事件 | 去除自身播放的回声,检测用户开口;**全双工的触发器** | WebRTC AEC3、Silero VAD、FSMN-VAD | 客户端 | 插话检出率、回声误触发率、检测延迟 | | **ASR** 语音识别 | 听懂 | 音频流 → 草稿 / 定稿文本 | 听写的全部能力;翻译、会议、问答的输入质量 | SenseVoice、Paraformer 流式、Whisper turbo | 本地推理服务 | 字错率、首字延迟、专名召回 | +| **VLM** 视觉语言模型(v0.4) | 看懂 | 屏幕 / 图像 / 视频 + 文本 → 文本 | 理解屏幕内容,支撑多模态请求和智能补全 | Qwen-VL 系列小尺寸量化版本 | 本地推理服务 | 定位准确率、延迟 | | **LLM** 大语言模型 | 思考 | 文本 + 上下文 → 文本 | 翻译、口语转书面、纠错、会议摘要、问答、播报稿改写 | Qwen 系列 4B–8B 量化版本;可接云端大模型 | 本地推理服务 | 译文可用率、事实一致性、首 token 延迟 | | **TTS** 语音合成 | 表达 | 文本 + 语气 → 音频流 | 情感化朗读和回答播报,支持个人音色 | CosyVoice、Kokoro 等 | 本地推理服务 | 自然度、错读率、首包延迟 | | **Embedding** 向量模型 | 记忆 | 文本 → 向量 | 本地知识库入库与检索,为 LLM 提供个人上下文 | bge-m3 等 | 本地推理服务 | 检索召回率 | -> 候选按交付阶段评测,首期聚焦 ASR 与翻译,不代表最终选型;优先选用 vLLM-Omni 已支持的模型。锁定前须逐一核对模型许可证是否允许开源分发和商用。 +> 候选在首次需要它的版本中评测,先从 ASR 与翻译开始,不代表最终选型;优先选用 vLLM-Omni 已支持的模型。锁定前须逐一核对模型许可证是否允许开源分发和商用。 **个人化如何作用于模型**:个人词库同时作为 ASR 热词和 LLM 术语表;语音偏好用于 ASR 口音适配和 TTS 音色;知识库经 Embedding 检索后作为 LLM 的上下文。这三类数据都只在本地使用,涉及私有知识的任务强制使用本地推理。 @@ -141,11 +148,11 @@ OpenVoice 的目标是一款 Agent 原生的语音个人助手:开源、本地 | 任务 | 处理路径 | | --- | --- | -| 听写(M1) | 快捷键启动采集,ASR 草稿随说话更新,用户校对定稿并确认写入。可选择轻度 LLM 纠错。 | -| 翻译(M1) | LLM 翻译 ASR 的稳定分句。每条译文绑定原文版本,用户修改原文后重新翻译,丢弃过期结果。 | -| 会议(M2) | ASR 保留发言时间点,LLM 根据原文提取带出处的纪要草稿。用户复核后,Host 保存确认的条目,并可按需调用 Embedding 建立本地索引。丢弃的草稿不进入知识库。 | -| 定时播报(M3) | Host 的定时任务读取已授权内容,按需生成摘要或直接分段朗读。TTS 将文本转换成音频,客户端播放并记录位置。全程可以关闭麦克风。 | -| 播报中插话(M4) | 用户启用语音打断后,采集与播放并行。回退等指令直接控制播放器,开放式提问经 ASR、LLM 和 TTS 生成语音回答。 | +| 听写(v0.1) | 快捷键启动采集,ASR 草稿随说话更新,用户校对定稿并确认写入。可选择轻度 LLM 纠错。 | +| 翻译(v0.1) | LLM 翻译 ASR 的稳定分句。每条译文绑定原文版本,用户修改原文后重新翻译,丢弃过期结果。 | +| 会议(v0.2) | ASR 保留发言时间点,LLM 根据原文提取带出处的纪要草稿。用户复核后,Host 保存确认的条目,并可按需调用 Embedding 建立本地索引。丢弃的草稿不进入知识库。 | +| 定时播报(v0.3) | Host 的定时任务读取已授权内容,按需生成摘要或直接分段朗读。TTS 将文本转换成音频,客户端播放并记录位置。全程可以关闭麦克风。 | +| 播报中插话(v1.0) | 用户启用语音打断后,采集与播放并行。回退等指令直接控制播放器,开放式提问经 ASR、LLM 和 TTS 生成语音回答。 | ### 4.4 全双工插话时序:先停声,再理解,最后回应 @@ -157,7 +164,7 @@ OpenVoice 的目标是一款 Agent 原生的语音个人助手:开源、本地 - **内容问答**:取消旧轮次的生成与合成,用问题和允许使用的段落上下文请求 LLM,TTS 从首个稳定句开始播报。回答结束后可回到保存的位置。 - **误触发**:保留原轮次,从暂停位置恢复播放。 -文本与音频块均携带会话 ID 和轮次号。客户端丢弃已取消轮次的迟到结果。M4 的候选目标为**从用户实际起声到扬声器实际停声,P95 ≤ 300 ms**。另测起声到 VAD 事件的检测耗时,并分别在外放和耳机条件下统计误停与漏检。 +文本与音频块均携带会话 ID 和轮次号。客户端丢弃已取消轮次的迟到结果。v1.0 的候选目标为**从用户实际起声到扬声器实际停声,P95 ≤ 300 ms**。另测起声到 VAD 事件的检测耗时,并分别在外放和耳机条件下统计误停与漏检。 ### 4.5 部署模式与隐私边界 @@ -172,6 +179,6 @@ OpenVoice 的目标是一款 Agent 原生的语音个人助手:开源、本地 ## 5. 开发路标 -**M1 优先发布**,聚焦桌面听写与中译英。后续版本依次扩展会议转写与结构化纪要(M2)、情感化朗读与定时播报(M3),以及全双工插话与跨设备接力(M4)。 +发布计划见 [README](../README.zh-CN.md#发布计划):**v0.1.0** 听(macOS),**v0.2.0** 会议(新增 Windows 与 HarmonyOS),**v0.3.0** 说,**v0.4.0** 看(多模态输入),最后是 **v1.0.0** 对话(全双工插话与跨设备接力)。 -里程碑与仓库其他文档的阶段口径对应:**M1 = 首期(Phase 1)**,M2–M4 属于后期。 +早期文档使用 M1–M4 里程碑:M1 即 v0.1.0,M2 即 v0.2.0,M3 即 v0.3.0;M4 改为 v1.0.0。 diff --git a/docs/reference.md b/docs/reference.md index 0b6ee62..64bf8cb 100644 --- a/docs/reference.md +++ b/docs/reference.md @@ -1,5 +1,7 @@ # Reference -状态:待编写(TBD)。 +**English** · [简体中文](reference.zh-CN.md) -配置 / CLI / API 参考:Host 配置项、会话接口、任务接口、路由策略。 +Status: to be written (TBD). + +Configuration, CLI and API reference: Host settings, session API, job API and routing policy. diff --git a/docs/reference.zh-CN.md b/docs/reference.zh-CN.md new file mode 100644 index 0000000..9f329f4 --- /dev/null +++ b/docs/reference.zh-CN.md @@ -0,0 +1,7 @@ +# Reference + +[English](reference.md) · **简体中文** + +状态:待编写(TBD)。 + +配置 / CLI / API 参考:Host 配置项、会话接口、任务接口、路由策略。 diff --git a/docs/subsystems/README.md b/docs/subsystems/README.md index 44a1262..e762566 100644 --- a/docs/subsystems/README.md +++ b/docs/subsystems/README.md @@ -1,16 +1,47 @@ # Subsystems -One doc per subsystem. Map of the Personal Host architecture: - -- `voice-sessions.md` — 语音会话:采集 / 打断 / 返回结果 -- `durable-jobs.md` — 持久任务:排队 / 恢复 / 取消 -- `provider-router.md` — 模型路由:按语言 / 能力 / 隐私策略选模型 -- `device-registry.md` — 设备注册:配对 / 授权 / 吊销 -- `model-workers.md` — 本地模型 workers:识别 / 文本模型 / 合成 -- `storage.md` — Host 侧存储:SQLite 记忆 / 任务状态 / 音频文件 -- `cloud-provider.md` — 可选云端:按阶段 opt-in,只传所选内容 -- `paired-executor.md` — 配对执行器:在目标设备上执行限定范围的操作 -- `asr-pipeline.md` — 首期:ASR 链路 -- `translation.md` — 首期:实时翻译 -- `tts-director.md` — 后期:情感化 TTS(LLM 导演 + Reward 闭环) -- `full-duplex.md` — 后期:全双工打断插话 +**English** · [简体中文](README.zh-CN.md) + +One doc per subsystem, grouped by the layers in the [architecture overview](../architecture-overview.svg). “Release” is the version where each one first ships. + +## Endpoints + +| Doc | Covers | Release | +| --- | --- | --- | +| [Voice Sessions](voice-sessions.md) | Capture, interrupt, return results | v0.1 | +| [Paired Executor](paired-executor.md) | Scoped actions on a paired device | v1.0 | + +## Personal Host · voice processing + +| Doc | Covers | Release | +| --- | --- | --- | +| [ASR Pipeline](asr-pipeline.md) | Recognize, clean up, insert | v0.1 | +| [Speaker Labels](speaker-labels.md) | Diarization and voiceprint enrolment | v0.2 | +| [TTS Director](tts-director.md) | Expressive TTS with an LLM director | v0.3 | +| [Full-Duplex](full-duplex.md) | Barge-in, rewind, resume | v1.0 | + +## Personal Host · context & memory + +| Doc | Covers | Release | +| --- | --- | --- | +| [Knowledge Base](knowledge-base.md) | Lexicon, local index and retrieval | v0.1 | +| [Storage](storage.md) | SQLite memory, job state, audio files | v0.1 | + +## Personal Host · agent orchestration + +| Doc | Covers | Release | +| --- | --- | --- | +| [Translation](translation.md) | Real-time translation | v0.1 | +| [MCP Tools](mcp-tools.md) | MCP tools that ask before acting | v0.1 | +| [Durable Jobs](durable-jobs.md) | Queue, resume, cancel | v0.1 | +| [Provider Router](provider-router.md) | Local or cloud, per-stage consent | v0.1 | +| [Device Registry](device-registry.md) | Pairing, grants, revocation | v1.0 | + +## Inference + +| Doc | Covers | Release | +| --- | --- | --- | +| [Model Workers](model-workers.md) | ASR, LLM, TTS and vision workers | v0.1 | +| [Cloud Provider](cloud-provider.md) | Optional cloud, selected content only | v0.1 | + +The end-to-end design for handoff is in [cross-device-handoff](../cross-device-handoff.md) (v1.0). diff --git a/docs/subsystems/README.zh-CN.md b/docs/subsystems/README.zh-CN.md new file mode 100644 index 0000000..6757fb6 --- /dev/null +++ b/docs/subsystems/README.zh-CN.md @@ -0,0 +1,47 @@ +# 子系统 + +[English](README.md) · **简体中文** + +每个子系统一篇文档,按[架构总览](../architecture-overview.zh-CN.svg)的分层归类。“版本”是该子系统首次交付的版本。 + +## 端侧 + +| 文档 | 内容 | 版本 | +| --- | --- | --- | +| [Voice Sessions](voice-sessions.zh-CN.md) | 采集、打断、返回结果 | v0.1 | +| [Paired Executor](paired-executor.zh-CN.md) | 在配对设备上执行限定操作 | v1.0 | + +## Personal Host · 语音处理 + +| 文档 | 内容 | 版本 | +| --- | --- | --- | +| [ASR Pipeline](asr-pipeline.zh-CN.md) | 识别、整理、上屏 | v0.1 | +| [Speaker Labels](speaker-labels.zh-CN.md) | 说话人区分与声纹注册 | v0.2 | +| [TTS Director](tts-director.zh-CN.md) | LLM 导演的情感化 TTS | v0.3 | +| [Full-Duplex](full-duplex.zh-CN.md) | 打断、回退、续播 | v1.0 | + +## Personal Host · 上下文与记忆 + +| 文档 | 内容 | 版本 | +| --- | --- | --- | +| [Knowledge Base](knowledge-base.zh-CN.md) | 个人词库、本地索引与检索 | v0.1 | +| [Storage](storage.zh-CN.md) | SQLite 记忆、任务状态、音频文件 | v0.1 | + +## Personal Host · Agent 编排 + +| 文档 | 内容 | 版本 | +| --- | --- | --- | +| [Translation](translation.zh-CN.md) | 实时翻译 | v0.1 | +| [MCP Tools](mcp-tools.zh-CN.md) | 执行前先确认的 MCP 工具 | v0.1 | +| [Durable Jobs](durable-jobs.zh-CN.md) | 排队、恢复、取消 | v0.1 | +| [Provider Router](provider-router.zh-CN.md) | 本地或云端,逐阶段授权 | v0.1 | +| [Device Registry](device-registry.zh-CN.md) | 配对、授权、吊销 | v1.0 | + +## 推理 + +| 文档 | 内容 | 版本 | +| --- | --- | --- | +| [Model Workers](model-workers.zh-CN.md) | ASR、LLM、TTS 与视觉模型 worker | v0.1 | +| [Cloud Provider](cloud-provider.zh-CN.md) | 可选云端,只传所选内容 | v0.1 | + +跨设备接力的整体设计见 [cross-device-handoff](../cross-device-handoff.zh-CN.md)(v1.0)。 diff --git a/docs/subsystems/asr-pipeline.md b/docs/subsystems/asr-pipeline.md index 8c9defe..200c616 100644 --- a/docs/subsystems/asr-pipeline.md +++ b/docs/subsystems/asr-pipeline.md @@ -1,5 +1,7 @@ # ASR Pipeline -状态:待编写(TBD)。 +**English** · [简体中文](asr-pipeline.zh-CN.md) -首期:ASR 链路。识别、整理、上屏三段;对标 Chatterfly 的级联 ASR + LLM,关注整理段时延。 +Status: to be written (TBD). + +Recognize, clean up, insert: a cascaded ASR + LLM pipeline. Watch the latency of the clean-up stage. Ships in v0.1.0. diff --git a/docs/subsystems/asr-pipeline.zh-CN.md b/docs/subsystems/asr-pipeline.zh-CN.md new file mode 100644 index 0000000..7b7b872 --- /dev/null +++ b/docs/subsystems/asr-pipeline.zh-CN.md @@ -0,0 +1,7 @@ +# ASR Pipeline + +[English](asr-pipeline.md) · **简体中文** + +状态:待编写(TBD)。 + +识别、整理、上屏三段:级联 ASR + LLM,重点关注整理段的时延。v0.1.0 交付。 diff --git a/docs/subsystems/cloud-provider.md b/docs/subsystems/cloud-provider.md index 0e6da20..abf529e 100644 --- a/docs/subsystems/cloud-provider.md +++ b/docs/subsystems/cloud-provider.md @@ -1,5 +1,7 @@ # Cloud Provider -状态:待编写(TBD)。 +**English** · [简体中文](cloud-provider.zh-CN.md) -可选云端:按阶段 opt-in,只传所选内容;本地模型能力上限时由用户自行权衡隐私与效果。 +Status: to be written (TBD). + +Optional cloud: opt in per stage and send only the selected content. When local models reach their limits, users weigh privacy against quality themselves. diff --git a/docs/subsystems/cloud-provider.zh-CN.md b/docs/subsystems/cloud-provider.zh-CN.md new file mode 100644 index 0000000..8a85c2d --- /dev/null +++ b/docs/subsystems/cloud-provider.zh-CN.md @@ -0,0 +1,7 @@ +# Cloud Provider + +[English](cloud-provider.md) · **简体中文** + +状态:待编写(TBD)。 + +可选云端:按阶段 opt-in,只传所选内容;本地模型能力到上限时,由用户自行权衡隐私与效果。 diff --git a/docs/subsystems/device-registry.md b/docs/subsystems/device-registry.md index 7c97968..c3f9034 100644 --- a/docs/subsystems/device-registry.md +++ b/docs/subsystems/device-registry.md @@ -1,5 +1,7 @@ # Device Registry -状态:待编写(TBD)。 +**English** · [简体中文](device-registry.zh-CN.md) -设备注册:配对、授权、吊销;设备间本地调用 / IPC 与加密链路。 +Status: to be written (TBD). + +Device registry: pairing, grants and revocation; local calls and IPC between devices over an encrypted link. Needed for cross-device handoff in v1.0.0. diff --git a/docs/subsystems/device-registry.zh-CN.md b/docs/subsystems/device-registry.zh-CN.md new file mode 100644 index 0000000..3b5bd70 --- /dev/null +++ b/docs/subsystems/device-registry.zh-CN.md @@ -0,0 +1,7 @@ +# Device Registry + +[English](device-registry.md) · **简体中文** + +状态:待编写(TBD)。 + +设备注册:配对、授权、吊销;设备间本地调用 / IPC 与加密链路。v1.0.0 跨设备接力需要。 diff --git a/docs/subsystems/durable-jobs.md b/docs/subsystems/durable-jobs.md index 1d5c514..9233845 100644 --- a/docs/subsystems/durable-jobs.md +++ b/docs/subsystems/durable-jobs.md @@ -1,5 +1,7 @@ # Durable Jobs -状态:待编写(TBD)。 +**English** · [简体中文](durable-jobs.zh-CN.md) -持久任务:排队、恢复、取消;任务状态持久化与断点续跑。对应 #3276 类问题:停止必须是执行侧中断,不是排队消息。 +Status: to be written (TBD). + +Durable jobs: queue, resume and cancel; persisted job state and resume after interruption. Stopping must interrupt execution itself, not just queue a message (see #3276). diff --git a/docs/subsystems/durable-jobs.zh-CN.md b/docs/subsystems/durable-jobs.zh-CN.md new file mode 100644 index 0000000..92d9e35 --- /dev/null +++ b/docs/subsystems/durable-jobs.zh-CN.md @@ -0,0 +1,7 @@ +# Durable Jobs + +[English](durable-jobs.md) · **简体中文** + +状态:待编写(TBD)。 + +持久任务:排队、恢复、取消;任务状态持久化与断点续跑。对应 #3276 类问题:停止必须是执行侧中断,不是排队消息。 diff --git a/docs/subsystems/full-duplex.md b/docs/subsystems/full-duplex.md index eabd56d..a5ffe1d 100644 --- a/docs/subsystems/full-duplex.md +++ b/docs/subsystems/full-duplex.md @@ -1,5 +1,7 @@ # Full-Duplex -状态:待编写(TBD)。 +**English** · [简体中文](full-duplex.zh-CN.md) -后期:全双工打断插话。用户随时打断或回退播报内容;打断时延与状态恢复。 +Status: to be written (TBD). + +Full-duplex barge-in: users can interrupt or rewind playback at any time. Covers barge-in latency and state recovery. Ships in v1.0.0. diff --git a/docs/subsystems/full-duplex.zh-CN.md b/docs/subsystems/full-duplex.zh-CN.md new file mode 100644 index 0000000..40771ec --- /dev/null +++ b/docs/subsystems/full-duplex.zh-CN.md @@ -0,0 +1,7 @@ +# Full-Duplex + +[English](full-duplex.md) · **简体中文** + +状态:待编写(TBD)。 + +全双工打断插话:用户随时打断或回退播报内容;打断时延与状态恢复。v1.0.0 交付。 diff --git a/docs/subsystems/knowledge-base.md b/docs/subsystems/knowledge-base.md new file mode 100644 index 0000000..94a2af9 --- /dev/null +++ b/docs/subsystems/knowledge-base.md @@ -0,0 +1,7 @@ +# Knowledge Base + +**English** · [简体中文](knowledge-base.zh-CN.md) + +Status: to be written (TBD). + +Personal lexicon (ASR hotwords and LLM glossary) and the local knowledge base: indexing local notes, documents and approved minutes with embeddings, and retrieving context for the LLM. Everything stays on the device. Ships in v0.1.0. diff --git a/docs/subsystems/knowledge-base.zh-CN.md b/docs/subsystems/knowledge-base.zh-CN.md new file mode 100644 index 0000000..1da5cb3 --- /dev/null +++ b/docs/subsystems/knowledge-base.zh-CN.md @@ -0,0 +1,7 @@ +# Knowledge Base + +[English](knowledge-base.md) · **简体中文** + +状态:待编写(TBD)。 + +个人词库(同时作为 ASR 热词和 LLM 术语表)与本地知识库:用 Embedding 为本地笔记、文档和已确认的纪要建立索引,并为 LLM 检索上下文。全部留在本机。v0.1.0 交付。 diff --git a/docs/subsystems/mcp-tools.md b/docs/subsystems/mcp-tools.md new file mode 100644 index 0000000..9b2a527 --- /dev/null +++ b/docs/subsystems/mcp-tools.md @@ -0,0 +1,7 @@ +# MCP Tools + +**English** · [简体中文](mcp-tools.zh-CN.md) + +Status: to be written (TBD). + +The Host is an MCP client. Read-only tools run directly; any tool that changes something waits for the user's click or spoken confirmation, and no answer counts as no. Ships in v0.1.0. diff --git a/docs/subsystems/mcp-tools.zh-CN.md b/docs/subsystems/mcp-tools.zh-CN.md new file mode 100644 index 0000000..74cf86e --- /dev/null +++ b/docs/subsystems/mcp-tools.zh-CN.md @@ -0,0 +1,7 @@ +# MCP Tools + +[English](mcp-tools.md) · **简体中文** + +状态:待编写(TBD)。 + +Host 是 MCP 客户端。只读工具直接运行;会改变状态的工具要等用户点击或语音确认,不回应即视为拒绝。v0.1.0 交付。 diff --git a/docs/subsystems/model-workers.md b/docs/subsystems/model-workers.md index 2b37e66..0fd0d9b 100644 --- a/docs/subsystems/model-workers.md +++ b/docs/subsystems/model-workers.md @@ -1,5 +1,7 @@ # Model Workers -状态:待编写(TBD)。 +**English** · [简体中文](model-workers.zh-CN.md) -本地模型 workers:识别(ASR)、文本模型、合成(TTS);长文本下的音色一致性。 +Status: to be written (TBD). + +Local model workers: ASR, text models, TTS and, later, vision models; voice consistency on long text. diff --git a/docs/subsystems/model-workers.zh-CN.md b/docs/subsystems/model-workers.zh-CN.md new file mode 100644 index 0000000..e32d7a8 --- /dev/null +++ b/docs/subsystems/model-workers.zh-CN.md @@ -0,0 +1,7 @@ +# Model Workers + +[English](model-workers.md) · **简体中文** + +状态:待编写(TBD)。 + +本地模型 workers:识别(ASR)、文本模型、合成(TTS),以及后续的视觉模型;长文本下的音色一致性。 diff --git a/docs/subsystems/paired-executor.md b/docs/subsystems/paired-executor.md index d90e508..d2dd249 100644 --- a/docs/subsystems/paired-executor.md +++ b/docs/subsystems/paired-executor.md @@ -1,5 +1,7 @@ # Paired Executor -状态:待编写(TBD)。 +**English** · [简体中文](paired-executor.zh-CN.md) -配对执行器:在目标设备上执行限定范围的操作;权限收敛到单次任务。 +Status: to be written (TBD). + +Paired executor: run scoped actions on a target device, with permissions narrowed to a single task. diff --git a/docs/subsystems/paired-executor.zh-CN.md b/docs/subsystems/paired-executor.zh-CN.md new file mode 100644 index 0000000..3d382d2 --- /dev/null +++ b/docs/subsystems/paired-executor.zh-CN.md @@ -0,0 +1,7 @@ +# Paired Executor + +[English](paired-executor.md) · **简体中文** + +状态:待编写(TBD)。 + +配对执行器:在目标设备上执行限定范围的操作;权限收敛到单次任务。 diff --git a/docs/subsystems/provider-router.md b/docs/subsystems/provider-router.md index f820dd1..f374f29 100644 --- a/docs/subsystems/provider-router.md +++ b/docs/subsystems/provider-router.md @@ -1,5 +1,7 @@ # Provider Router -状态:待编写(TBD)。 +**English** · [简体中文](provider-router.zh-CN.md) -模型路由:按语言、能力、隐私策略选择本地模型或云端模型;派活前做能力校验。 +Status: to be written (TBD). + +Model routing: choose a local or cloud model by language, capability and privacy policy; check capability and stage consent before dispatching. diff --git a/docs/subsystems/provider-router.zh-CN.md b/docs/subsystems/provider-router.zh-CN.md new file mode 100644 index 0000000..a5b4092 --- /dev/null +++ b/docs/subsystems/provider-router.zh-CN.md @@ -0,0 +1,7 @@ +# Provider Router + +[English](provider-router.md) · **简体中文** + +状态:待编写(TBD)。 + +模型路由:按语言、能力、隐私策略选择本地模型或云端模型;派活前做能力与阶段授权校验。 diff --git a/docs/subsystems/speaker-labels.md b/docs/subsystems/speaker-labels.md new file mode 100644 index 0000000..78d5d17 --- /dev/null +++ b/docs/subsystems/speaker-labels.md @@ -0,0 +1,7 @@ +# Speaker Labels + +**English** · [简体中文](speaker-labels.zh-CN.md) + +Status: to be written (TBD). + +Speaker diarization across a whole session and opt-in voiceprint enrolment. Labels are advisory and never authorize an action. Ships in v0.2.0; an early version is in review in #3. diff --git a/docs/subsystems/speaker-labels.zh-CN.md b/docs/subsystems/speaker-labels.zh-CN.md new file mode 100644 index 0000000..8fe154a --- /dev/null +++ b/docs/subsystems/speaker-labels.zh-CN.md @@ -0,0 +1,7 @@ +# Speaker Labels + +[English](speaker-labels.md) · **简体中文** + +状态:待编写(TBD)。 + +整场会话的说话人区分,以及需本人同意的声纹注册。标注仅供参考,不能用来授权任何操作。v0.2.0 交付,早期版本已在 #3 中评审。 diff --git a/docs/subsystems/storage.md b/docs/subsystems/storage.md index 27ead00..89b3a46 100644 --- a/docs/subsystems/storage.md +++ b/docs/subsystems/storage.md @@ -1,5 +1,7 @@ # Storage -状态:待编写(TBD)。 +**English** · [简体中文](storage.zh-CN.md) -Host 侧自有存储:SQLite 记忆、任务状态、音频文件;记忆分层与用户可控。 +Status: to be written (TBD). + +Host-owned storage: SQLite memory, job state and audio files; layered memory under the user's control. diff --git a/docs/subsystems/storage.zh-CN.md b/docs/subsystems/storage.zh-CN.md new file mode 100644 index 0000000..22eed25 --- /dev/null +++ b/docs/subsystems/storage.zh-CN.md @@ -0,0 +1,7 @@ +# Storage + +[English](storage.md) · **简体中文** + +状态:待编写(TBD)。 + +Host 侧自有存储:SQLite 记忆、任务状态、音频文件;记忆分层,由用户掌控。 diff --git a/docs/subsystems/translation.md b/docs/subsystems/translation.md index 6cd8fca..a112295 100644 --- a/docs/subsystems/translation.md +++ b/docs/subsystems/translation.md @@ -1,5 +1,7 @@ # Translation -状态:待编写(TBD)。 +**English** · [简体中文](translation.zh-CN.md) -首期:实时翻译。口语实时转准确书面外语;多语言交流场景。 +Status: to be written (TBD). + +Real-time translation: turn speech into accurate written text in another language, for multilingual conversations. Ships in v0.1.0. diff --git a/docs/subsystems/translation.zh-CN.md b/docs/subsystems/translation.zh-CN.md new file mode 100644 index 0000000..5bdd72e --- /dev/null +++ b/docs/subsystems/translation.zh-CN.md @@ -0,0 +1,7 @@ +# Translation + +[English](translation.md) · **简体中文** + +状态:待编写(TBD)。 + +实时翻译:把口语实时转成准确的书面外语,面向多语言交流场景。v0.1.0 交付。 diff --git a/docs/subsystems/tts-director.md b/docs/subsystems/tts-director.md index 44103c3..3d150cf 100644 --- a/docs/subsystems/tts-director.md +++ b/docs/subsystems/tts-director.md @@ -1,5 +1,7 @@ # TTS Director -状态:待编写(TBD)。 +**English** · [简体中文](tts-director.zh-CN.md) -后期:情感化 TTS。LLM 做导演自动规划语气情感,Reward 模型闭环优化;痛点:长文本音色漂移、Reward 不稳定、离线工作流转线上低延迟。 +Status: to be written (TBD). + +Expressive TTS: an LLM acts as director and plans tone and emotion, with a reward model closing the loop. Known pain points: voice drift on long text, unstable rewards, and moving an offline workflow to low-latency online use. Ships in v0.3.0. diff --git a/docs/subsystems/tts-director.zh-CN.md b/docs/subsystems/tts-director.zh-CN.md new file mode 100644 index 0000000..ba19b41 --- /dev/null +++ b/docs/subsystems/tts-director.zh-CN.md @@ -0,0 +1,7 @@ +# TTS Director + +[English](tts-director.md) · **简体中文** + +状态:待编写(TBD)。 + +情感化 TTS:LLM 做导演自动规划语气情感,Reward 模型闭环优化。痛点:长文本音色漂移、Reward 不稳定、离线工作流转线上低延迟。v0.3.0 交付。 diff --git a/docs/subsystems/voice-sessions.md b/docs/subsystems/voice-sessions.md index 74f2649..0934696 100644 --- a/docs/subsystems/voice-sessions.md +++ b/docs/subsystems/voice-sessions.md @@ -1,5 +1,7 @@ # Voice Sessions -状态:待编写(TBD)。 +**English** · [简体中文](voice-sessions.zh-CN.md) -语音会话:采集、打断、返回结果;会话生命周期与状态机。 +Status: to be written (TBD). + +Voice sessions: capture, interrupt and return results; session lifecycle and state machine. diff --git a/docs/subsystems/voice-sessions.zh-CN.md b/docs/subsystems/voice-sessions.zh-CN.md new file mode 100644 index 0000000..615ee01 --- /dev/null +++ b/docs/subsystems/voice-sessions.zh-CN.md @@ -0,0 +1,7 @@ +# Voice Sessions + +[English](voice-sessions.md) · **简体中文** + +状态:待编写(TBD)。 + +语音会话:采集、打断、返回结果;会话生命周期与状态机。 diff --git a/site/README.md b/site/README.md index 0b6e32e..511f565 100644 --- a/site/README.md +++ b/site/README.md @@ -2,5 +2,5 @@ Docs site placeholder. -magpie 在这里放了一个手写静态站;OpenVoice 的文档站(框架待定) -放在这里,与 `docs/` 的内容保持同步。 +magpie keeps a hand-written static site here. The OpenVoice docs site +(framework to be decided) will live here and stay in sync with `docs/`.