Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 2 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
23 changes: 18 additions & 5 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
222 changes: 204 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,34 +1,220 @@
# OpenVoice
<p align="center">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="docs/assets/openvoice-wordmark-dark.svg">
<img alt="OpenVoice" src="docs/assets/openvoice-wordmark.svg" width="420">
</picture>
</p>

Agent-native voice personal agent, powered by vLLM-Omni.
<p align="center"><b>Open-source voice input method and voice sprite, powered by vLLM-Omni.</b></p>

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.
<p align="center"><b>English</b> · <a href="README.zh-CN.md">简体中文</a></p>

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.
<p align="center">
<a href="docs/architecture-overview.svg">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="docs/architecture-overview-dark.svg">
<img alt="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" src="docs/architecture-overview.svg" width="720">
</picture>
</a>
</p>

## 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.
Loading