Repository navigation
cracktro: add kiosk voice mode (V) using browser speech synthesis - #80480
Conversation
Reads each slide's caption lines aloud with speechSynthesis, alternating two voices (or pitches), holding the kiosk slide until speech ends. The voice button is disabled where speech synthesis is unsupported. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
|
✅ PR Code Quality Reviewer completed the code quality review. PR Code Quality ReviewerOutcome: The agent completed and reported one or more actions. The no-op output is a completion signal, not a claim that no action was taken. The No-op messageCompleted PR #80480 review: published one requested-change inline finding and recorded review history.
|
|
❌ Test Quality Sentinel failed during test quality analysis. Incomplete workTest Quality Sentinel could not complete a reliable review of PR #80480: the pre-fetched test evidence is stale/incomplete. /tmp/gh-aw/agent/test-files.txt and /tmp/gh-aw/agent/test-diff.txt are empty, and the Go/JS test-function extraction files are empty, but pr-meta.json and diff-numstat.txt list docs/tests/talk.spec.ts as modified (+86 lines). git diff between base 45403a8 and head cddc4d8 confirms docs/tests/talk.spec.ts has 86 inserted lines, so the changed test diff was not captured. Test quality cannot be scored without that diff.
|
|
✅ Ponytail Reviewer completed successfully! Ponytail ReviewerOutcome: The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible. The No-op messageLean already. Ship.
|
|
🧠 Matt Pocock Skills Reviewer has completed the skills-based review. ✅
|
Rank speech voices natural/neural first, then warm broadcast-style names; never pick macOS novelty voices (Safari flags every voice as default, which picked Albert). Slightly lower pitch and unhurried rate. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Comment MemoryPeek at saved memory (pr-code-quality-reviewer)Note This comment is managed by comment memory.Expand the saved memory block to view or edit the persistent context for this thread.
|
There was a problem hiding this comment.
The voice hold timeout does not match the documented contract: it is capped at 60 seconds from slide entry rather than 60 seconds after the normal dwell. Please align the implementation and documentation before merge; the inline comment identifies the exact location.
🔎 Code quality review by PR Code Quality Reviewer · copilot · gpt50 · ~5 AIC · ⌖ ~2 AIC · ⊞ 1.7K
Comment /review to run again
Comment MemoryPeek at saved memory (review-history)History |
There was a problem hiding this comment.
🟡 Changes recommended
Voice selection can use network-dependent synthesis despite the no-network guarantee, and the narration cutoff starts too early, potentially canceling speech before the documented deadline.
2 open issues
What changed in this PR
Adds optional spoken narration to the cracktro deck’s kiosk mode, using the existing caption conversations and browser speech synthesis.
Changes:
- Adds the V shortcut, voice dock button, voice selection, and kiosk timing integration.
- Exposes a typed
voice(on?)controller API and documents voice-mode behavior. - Adds runtime tests for narration, toggles, preference persistence, and unsupported browsers.
| File | Description |
|---|---|
docs/tests/talk.spec.ts |
Adds speech-engine and unsupported-browser tests. |
docs/README.md |
Documents voice controls and kiosk behavior. |
docs/public/cracktro/runtime.js |
Implements narration, controls, voice selection, and slide holds. |
docs/public/cracktro/runtime.d.ts |
Declares the voice controller API. |
.github/skills/cracktro/slides.md |
Clarifies that captions also supply narration. |
.github/skills/cracktro/SKILL.md |
Documents voice support alongside generated captions. |
Review effort: Balanced (adaptive)
There was a problem hiding this comment.
Skills-Based Review 🧠
Applied /tdd (triage recommended /tdd and /grill-with-docs; skill selection used the triage output). Requesting changes on one behavioural mismatch and unverified tests.
📋 Key Themes & Highlights
Key Themes
- Hold cap timing:
VOICE_HOLD_MSruns from slide entry, but the PR text and code comment say "60 s past the dwell". This is the blocking item. - Unverified tests: the two new Playwright cases were not run, and the stalled-engine path has no coverage.
- Kiosk re-entry: checked the
Vto kiosk path. Theon === voiceOnguard prevents a duplicate first line, so no change is needed there.
Positive Highlights
- ✅ No key conflicts:
Vis free, and the.vcbdock slot sits clear of the other kiosk controls. - ✅ Voice toggles follow the same persistence pattern as captions (
capPref), and the feature is a no-op whenspeechSynthesisis unavailable. - ✅
capLinesfalls back to heading and summary, so slides without a script still speak.
@copilot please address the inline review comments above.
🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer · copilot · routed: haiku55 xhigh · ~8 AIC · ⌖ ~2 AIC · ⊞ 7.1K
Comment /matt to run again
ok
|
🍳 A little prep to help this PR along! Copilot assignment requested for the following outstanding work:
Keeping the changes focused; human review and CI get the final taste test. No merging or CI triggering. Structured data{
"completed_task": 0,
"head": "5e6a8b6fc6d81c51eee42be3a1aab09cd678af30",
"kind": "requested",
"schema_version": "1",
"state": "616a588c540c613568dd6bde365730739ccc7f41b367a0777f04f22e50beb603",
"work": [
"37ad1fd336df51ec7758dfc87b3785aedb89f55497110a55969cf63a322be2a6",
"52eea20aff35bd7ab1acd2e95533e47e79d40fbf0499b22264c2d8c1e7fd3014",
"71401f3d5b23436b89135411bf23d2f7a9d29e1a5d8c6bf3365443c8ff605805",
"b3f239be9c633a0dfeb1e4f5cf57907039568632b9f6b0304f5a7d70be540dc4",
"bc8e662fa50b6b840323e4e38086ce81a39ceb63035cbf9860e023075a60336f"
],
"workflow": "pr-sous-chef"
}
|
The 60 s voice hold now starts when the kiosk dwell ends and restarts with every countdown; a stalled-engine test asserts release at dwell+60 s. Voice selection keeps only localService voices (no network), stays silent without one, and waits once for voiceschanged while the list loads. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
|
Batch follow-up on the bot comments:
|

Kiosk mode already shows closed captions (a two-speaker conversation per slide) on muted screens. This adds an optional voice mode that reads those same captions aloud, so the deck can run as a narrated loop without audio files or network calls.
Approach
speechSynthesis. Each slide's caption lines are spoken in order, alternating two voices for the two speakers. If only one voice exists, a lower and a higher pitch distinguish them.speechSynthesis.speakandSpeechSynthesisUtterance. If either is missing, the button is disabled and dimmed, its title says "Voice is not supported in this browser", and V andcontroller.voice()are no-ops.voice(on?), typed inruntime.d.ts; V is added to the help and key legends.Validation
docs/tests/talk.spec.ts: one with a fake speech engine (speaking, slide hold, toggles, preference persistence), one withspeechSynthesisremoved (disabled button). These could not run locally because the sandbox blocks Playwright browsers; please rely on CI.node --checkandnpm run check:cracktropass.No slide content changed (runtime chrome only), so there are no slide screenshots.