Skip to content

quest: plan captions from moq.pro transcripts and TTS on Phonon - #72

Merged
kixelated merged 9 commits into
mainfrom
quest-run/captions-tts
Nov 27, 2026
Merged

kixelated merged 9 commits into
mainfrom
quest-run/captions-tts

Conversation

@kixelated

@kixelated kixelated commented Nov 26, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Records the maintainer's 2026-11-26 planning interview ("plan to use MoQ.pro for STT at least and research other TTS models we could run in the browser") as quest edits:

  • quest/m2/captions-ai-voice.md becomes "Live captions from moq.pro transcripts" (quest/m2/live-captions.md, M): watch the transcript rendition moq.pro publishes for each Hang broadcast, render it with @moq/watch's Text.Renderer, reuse the watch-side UI from feat(room): live captions over native text tracks #65 (linked at its head 7d1f56f), name moq.pro on the privacy page, and add a post-deploy signal that a transcript frame arrives.
  • The AI voice agent half moves to quest/m2/ai-voice-agent.md (M), carrying feat(room): live captions over native text tracks #65's rewritten plan and its open reply-generator decision. Its broadcast is transcribed like any other, so it needs no caption work.
  • quest/m2/tts-off-kokoro-js.md becomes quest/m2/tts-phonon.md (M) with the engine decided; its Maintainer: engine-choice item (from chore(deps): patch advisories, drop unused dependencies, gate them with fallow #56) is removed.
  • Link text updated in audit-code.md and audit-deps.md.
  • From the local review after the pick: ai-voice-agent.md now requires an upstream @moq/room agent path kind (today parse() accepts only camera/screen, so remote peers would never discover the agent) and a local agent tile for the summoner, whose discovery loop skips its own identity; live-captions.md's privacy step names moq.pro's Deepgram backend as well.

The captions quest was moved with git mv: quest mv refused because #65's closed branch quest/m2/captions-ai-voice still exists (kept for reference) and counts as a claim. The new path also frees the quest from that stale claim.

Decisions

Taken by the maintainer on 2026-11-26 via /quest-run:

  1. feat(room): live captions over native text tracks #65: ✅ close it and carry its UI into the moq.pro captions quest (rejected: land in-browser captions as an interim; strip feat(room): live captions over native text tracks #65 to its watch side only).
  2. Captions scope: ✅ source-language captions first, translation once the upstream translator runs on moq.pro; one transcription rule for all Hang rooms, captions off by default per viewer; no captions in encrypted rooms (rejected: per-room opt-in; hold captions until translation).
  3. How Hang sessions reach transcripts: not decided ("nothing yet"). Recorded as a Maintainer: item in the captions quest, no token re-root quest planned.
  4. TTS: ✅ Phonon 31M via phonon-tts for High, speechSynthesis stays Low, drop kokoro-js, transformers.js 3, and sharp (rejected: vendor Kokoro onto transformers.js 4; benchmark both first). Risks noted: pre-1.0, English only.
  5. AI voice agent replies (in ai-voice-agent.md, decided at this PR's pick): ✅ scripted replies spoken with local Phonon TTS now, a hosted LLM later if the demo earns it (rejected: hosted LLM now; leave it open). Recorded in its Plan; its Maintainer: item is removed.
  6. Base merge (afk, iterate): ✅ merge main in after quest: audit the quest tree #58, feat(room): live MoQ telemetry HUD in Debug mode #64, and fix(app): bundle onnxruntime-web into the TTS worker #71 so quest merge accepts the head (rejected: rebasing a published branch). The merge was conflict-free and leaves this PR's diff unchanged, so the review of 7ff143e still covers it. tts-phonon.md's step to "remove anything left for [ORT] in app/vite.config.ts" now finds nothing after fix(app): bundle onnxruntime-web into the TTS worker #71, which harmlessly reads as a no-op, so it was left as is rather than reopen review for one clause. Merged main again at 5dbb89e after quest(m2): record the upstream E2EE gap in e2ee-rooms #66 and feat(room): stream live cursors and mid-drag tiles over datagrams #68, also conflict-free and leaving this PR's files unchanged.

Open quest decisions

Recorded as a Maintainer: item in the quest; it does not block this PR:

  • Maintainer (in live-captions.md): how a Hang session reaches transcripts. Options: (a) re-root room tokens at RELAY_PREFIX with subscribe <room> plus the room's transcript prefix and publish <room>/<identity>, versioning the join contract so tabs already in a call keep the old root; (b) moq.pro announces transcripts beneath the room root; (c) a second subscribe-only connection. Recommendation: (a).

Follow-ups

  • moq-dev/moq, for /quest-plan there (not filed here): land quest/m3/transcribe/format.md (the transcript format and its @moq/watch rendering) first, ahead of the crate, and list Hang (quest/m2/live-captions.md) as a consumer.

Overlaps

Impact

Quest files only. Public API and wire: none.

Validation

  • quest check: 31 documents ok; quest gate just check passes.
  • No remaining links to the old paths.
  • After merging main (b7f17bf): quest check and quest check --base origin/main pass (31 documents); bun fallow dead-code --unused-deps, bun run check, and the api and app unit tests pass locally. The browser test:media suite is left to CI, since it times out locally at the current host load and this PR changes only quest files.
  • After merging main again (4b235b0, conflict-free): quest check --base origin/main passes (32 documents). Outside quest/ the tree equals origin/main, whose code passed fallow, bun run check, and the api and app unit tests locally on the same tree in quest(m2): record the upstream E2EE gap in e2ee-rooms #66 merge; test:media is left to CI.
  • After merging main again (5dbb89e, conflict-free, after feat(room): stream live cursors and mid-drag tiles over datagrams #68): quest check --base origin/main passes (31 documents); this PR's quest files are byte-identical to 4b235b0 and outside quest/ the tree equals origin/main, so code checks are left to CI.

Models

Size: S
Implementer: Claude Code, claude-opus-5-5, medium
Implementer: Claude Code, claude-opus-5-5, medium effort (iterate, XS)
Implementer: Claude Code, claude-opus-5-5, medium effort (iterate, XS)
Implementer: Claude Code, claude-opus-5-5, medium effort (iterate, XS)

(Written by Claude Opus 5.5 with medium)

🤖 Generated with Claude Code

Review

Rewritten by quest review after each round.

  • Head: 7ff143e

  • Base: origin/main at 51647b2

  • Risk: medium, it adds to plans under quest/, which agents start without a person reading them

  • Classified: medium by default

  • Risk file: none

  • Reviewer: Codex, gpt-6.2-sol, medium effort

  • Session: 01a219f2-621c-7702-af99-6d0f9142d14d, round 3

  • Score: 10/10, The plan now covers playback and interruption for the summoner and remote watchers, and the latest revision introduces no new findings.

  • Rounds: 3; first round 1 (medium 1); findings 2 (medium 2): fixed 2, refuted 0, open 0

  • Findings: none

  • The last round's findings, at 4b18584:

    • Fixed: medium, quest/m2/ai-voice-agent.md:19: Give the summoning browser a playback path for the agent; The plan at `quest/m2/ai-voice-agent.md:31` now requires adding the agent tile directly in the summoner’s browser and giving it the same buffered playback and `reset()` behavior as remote watchers.

Record the 2026-11-26 maintainer decisions: #65's in-browser Whisper
captions close in favor of moq.pro transcripts, the AI voice agent gets
its own quest, and High-quality TTS moves from kokoro-js to Phonon.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
kixelated and others added 2 commits November 26, 2026 12:47
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@kixelated
kixelated marked this pull request as ready for review November 26, 2026 20:49
@coderabbitai

coderabbitai Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 26 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 0214f98e-a503-4e22-923e-08653f9e7c26
Commits

Reviewing files that changed from the base of the PR and between dfd87d0 and 5dbb89e.

Files selected for processing: 7

  • quest/m2/ai-voice-agent.md
  • quest/m2/audit-code.md
  • quest/m2/audit-deps.md
  • quest/m2/captions-ai-voice.md
  • quest/m2/live-captions.md
  • quest/m2/tts-off-kokoro-js.md
  • quest/m2/tts-phonon.md
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@kixelated

Copy link
Copy Markdown
Collaborator Author

Maintainer decision (via /quest-run): ✅ /quest-merge this PR (rejected: iterate, skip).

quest/m2/ai-voice-agent.md replies: ✅ scripted replies spoken with local Phonon TTS now, a hosted LLM later if the demo earns it (rejected: hosted LLM now; leave it open). The token-access item in live-captions.md stays open (maintainer: "nothing yet").

(Written by Claude Opus 5.5)

kixelated and others added 4 commits November 26, 2026 13:50
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@kixelated

Copy link
Copy Markdown
Collaborator Author

Applied the decision in #72 (comment) at 7ff143e: quest/m2/ai-voice-agent.md's Plan records Decided 2026-11-26 (maintainer, /quest-run): ✅ scripted replies spoken with local Phonon TTS now, a hosted LLM later if the demo earns it (rejected: hosted LLM now; leave it open), and its Maintainer: item and ## Waiting section are gone. The token-access item in live-captions.md stays open. main is merged in, and the local review passed at 10/10 after two plan fixes (agent path discovery, summoner's local tile).

(Written by Claude Opus 5.5 with medium)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@kixelated
kixelated merged commit 3d7d96e into main Nov 27, 2026
2 checks passed
@kixelated
kixelated deleted the quest-run/captions-tts branch November 27, 2026 01:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant