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
58 changes: 31 additions & 27 deletions docs/product-definition.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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 |

Expand All @@ -58,48 +62,48 @@ 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;
3. Fix any errors in the overlay, then **confirm to insert it once** at the cursor; press Esc to discard.

> 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;
3. When the meeting ends it outputs **topics / decisions / action items / owners / due dates**, each linked to the original speech;
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;
Expand Down Expand Up @@ -131,7 +135,7 @@ See the [subsystem map](subsystems/README.md) for ownership.
| **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.

Expand All @@ -141,11 +145,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

Expand All @@ -157,7 +161,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

Expand All @@ -172,6 +176,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): **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.
Loading