[PR #1610] feat(gacha-forge): add voiced dialogue and soundtrack controls #1605

Open
opened 2026-10-24 04:02:35 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Agents/pull/1610
Author: @SpicyMarinara
Created: 10/23/2026
Status: 🔄 Open

Base: staging ← Head: feat/gacha-audio-1609


📝 Commits (10+)

  • a8122f2 chore: plan Gacha Forge audio and playback controls
  • 7e9ce20 Merge branch 'staging' into feat/gacha-audio-1609
  • 07685e8 feat(gacha-forge): add world audio and voice-aware playback
  • d2af86d fix(gacha-forge): respect audio generation request contracts
  • f24849d fix(gacha-forge): honor generated-effects opt-out
  • 92b7b95 fix(gacha-forge): preserve explicit audio connection selections
  • 510e56d fix(gacha-forge): keep setup presets clear of world mute control
  • f1afeec test(gacha-forge): pause autoplay clock before seeding dialogue
  • 7784723 Merge branch 'staging' into feat/gacha-audio-1609
  • 8c01854 Merge branch 'staging' into feat/gacha-audio-1609

📊 Changes

26 files changed (+3210 additions, -57 deletions)

View changed files

📝 .github/workflows/pull-request-checks.yml (+1 -0)
➕ artifacts/gacha-forge-1.11.0.zip (+0 -0)
📝 catalog/catalog.json (+9 -9)
📝 catalog/notes.json (+6 -0)
📝 catalog/v2/catalog.json (+9 -9)
📝 catalog/v2/notes.json (+6 -0)
📝 catalog/v3/catalog.json (+9 -9)
📝 catalog/v3/notes.json (+6 -0)
📝 packages/gacha-forge/CHANGELOG.md (+10 -0)
📝 packages/gacha-forge/README.md (+4 -0)
📝 packages/gacha-forge/bundle-patches.json (+148 -0)
📝 packages/gacha-forge/client.js (+661 -6)
📝 packages/gacha-forge/manifest.json (+6 -6)
📝 packages/gacha-forge/server.mjs (+35 -6)
➕ packages/gacha-forge/src/audio-client.mjs (+441 -0)
➕ packages/gacha-forge/src/audio-en.mjs (+98 -0)
➕ packages/gacha-forge/src/audio-settings.mjs (+23 -0)
➕ packages/gacha-forge/src/audio-story.mjs (+65 -0)
📝 packages/gacha-forge/src/browser-presentation.mjs (+23 -0)
📝 packages/gacha-forge/src/player-choices-server.mjs (+5 -1)

...and 6 more files

📄 Description

Linked issue

Closes #1609. Owned by @SpicyMarinara (Codex).

Depends on Pasta-Devs/Marinara-Engine#8167. Capability API 1.381 is declared. Commit 3dd1cb631 integrates current Agents staging ba39b7a99, preserving Gacha Forge 1.10.2's choice behavior/history and World Maps 1.7.1. Conflicts are resolved and regenerated package/catalog inputs pass local baseline and focused Node checks.

Remaining before ready: the actual merged Engine source pin. The integrated installed-ZIP browser/lifecycle proof and local integration review are complete. The PR stays temporarily draft until the required pin is concrete, then returns to ready automatically. All required checks and a viable final-head Dottore verdict remain merge gates.

Why this change

Gacha Forge could not use assigned Engine voices or Game audio. Dialogue pacing ignored voice completion, and portrait frames omitted their bottom edge.

What changed

  • Gacha Forge 1.11.0 adds per-world opt-in dialogue TTS and audio generation, stock music/effects, a mute button between Settings and fullscreen, and three precise channel volumes.
  • Autoplay waits for revealed text, voice completion and the configured pause (three seconds by default). Navigation and Skip cancel the active voice; choices wait for the player.
  • Character-card IDs select explicit voice assignments. Generated characters, thoughts, narration and characters without a voice stay silent.
  • World creation and existing-world settings share controls. Missing or quarantined explicit audio selections remain preserved through navigation, presets and creation.
  • Generation readiness refreshes after one minute or a generation-setting/connection change. Stale probes cannot follow a newer selection. Music-only and effects-only connections are labeled, generate only their supported channel, and keep the other channel on stock audio. Switching to an unavailable default clears the previous connection identity.
  • Home and story portraits include their bottom frame edge. Maintained source rebuilds into the shipped bundles, ZIP, catalogs and release notes.

Validation and review

npm run check, catalog lanes/locales/integrity/release notes, reversible bundle rebuild and whitespace checks pass. The integrated package passes 38 player-choice and 16 audio Node cases, including the shipped server routes. Before/after controls reproduce both hosted MEDIUM findings and the additional previous-connection cache edge.

The readiness/channel candidate 7c8f4436d passed 15 unique installed-ZIP audio cases: five each on desktop Chromium, mobile Chromium and mobile WebKit. These include actual Engine readiness/generation routes with an ephemeral local MP3 provider and cache reuse. The one-field connection-identity follow-up passed the affected case on all three engines at d642f333e; the preceding 15-case proof remains separate. The first observer attempt could not replace the Engine's frozen player; its failures/traces are retained. A delegating test wrapper corrected observation without changing the stock-tag assertion or product code.

Earlier neighboring/UI coverage at f24849d passed 31 unique cases, and prior exact-artifact lifecycle proof covered install, update, saved-world/audio preservation through offline restart, and uninstall. The integrated 3dd1cb631 ZIP passed 27 unique browser cases: nine each on desktop Chromium, mobile Chromium and mobile WebKit, covering audio and choices together. An exact 1.10.2 → 1.11.0 compiled-host lifecycle proof passed on frozen Engine 852d245ad: install, saved-world creation, update, offline restart with saved audio/zero values, uninstall and route removal. A separate six-case choice→audio bridge proves that action/legacy choices make no TTS config read, while typed dialogue sends the performed utterance and assigned voice. Exact preservation checks confirm upstream choice client/tests, historical artifacts, all non-Gacha catalog entries/notes and reviewed audio modules are retained. The final metadata-pin rebuild will repeat exact-archive checks and lifecycle proof; earlier candidates remain separate evidence states.

Local CodeRabbit: the original full review's two findings were fixed; earlier substantive rechecks completed with zero findings. The hosted-finding repair review reported one valid minor, reproduced and fixed. Its final 7c8f4436d → d642f333e recheck completed with zero findings. The d642f333e → 3dd1cb631 staging integration recheck also completed with zero findings across 22 text files. ZIP bytes are validated separately from text review.

UI gallery, original PNG hashes and connection-channel supplement — nine published evidence files and all 13 embedded PNGs verified across the two current 3dd galleries. Game palettes are distinct from the dark Engine chrome; the 175% text panel is intentionally scrolled. All five game palettes have portrait-frame geometry coverage. Media playback is controlled; no paid commercial-provider calls or physical-device codec/autoplay claims.

Manual verification

  • Manually verify dialogue, mute, volumes and autoplay on a physical phone.
  • Manually verify install/update, restart and removal through Download Agents.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Agents/pull/1610 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 10/23/2026 **Status:** 🔄 Open **Base:** `staging` ← **Head:** `feat/gacha-audio-1609` --- ### 📝 Commits (10+) - [`a8122f2`](https://github.com/Pasta-Devs/Marinara-Agents/commit/a8122f27a601cafb0293483833d40e9b4e778004) chore: plan Gacha Forge audio and playback controls - [`7e9ce20`](https://github.com/Pasta-Devs/Marinara-Agents/commit/7e9ce20df49d4c8f4fe6e549293f91231068c36e) Merge branch 'staging' into feat/gacha-audio-1609 - [`07685e8`](https://github.com/Pasta-Devs/Marinara-Agents/commit/07685e882a2e4e3aab177d856e9161b6333ed699) feat(gacha-forge): add world audio and voice-aware playback - [`d2af86d`](https://github.com/Pasta-Devs/Marinara-Agents/commit/d2af86d98bf52ef779fdd450d7ab81dbe0b657ff) fix(gacha-forge): respect audio generation request contracts - [`f24849d`](https://github.com/Pasta-Devs/Marinara-Agents/commit/f24849de5c0daa895dd5c325a12acb803007dab8) fix(gacha-forge): honor generated-effects opt-out - [`92b7b95`](https://github.com/Pasta-Devs/Marinara-Agents/commit/92b7b95f677ee7d77a81bc1e49162a5ca8d5443b) fix(gacha-forge): preserve explicit audio connection selections - [`510e56d`](https://github.com/Pasta-Devs/Marinara-Agents/commit/510e56d20ca6753fd84a525c61efe28c9f11abcd) fix(gacha-forge): keep setup presets clear of world mute control - [`f1afeec`](https://github.com/Pasta-Devs/Marinara-Agents/commit/f1afeec32d4f289943fc3b3446c46a236e2ebd06) test(gacha-forge): pause autoplay clock before seeding dialogue - [`7784723`](https://github.com/Pasta-Devs/Marinara-Agents/commit/77847238f85c66ac4357e6dbef0b7ee494f31def) Merge branch 'staging' into feat/gacha-audio-1609 - [`8c01854`](https://github.com/Pasta-Devs/Marinara-Agents/commit/8c01854b8584b29e234341a2cde107f1c91ca6ca) Merge branch 'staging' into feat/gacha-audio-1609 ### 📊 Changes **26 files changed** (+3210 additions, -57 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/pull-request-checks.yml` (+1 -0) ➕ `artifacts/gacha-forge-1.11.0.zip` (+0 -0) 📝 `catalog/catalog.json` (+9 -9) 📝 `catalog/notes.json` (+6 -0) 📝 `catalog/v2/catalog.json` (+9 -9) 📝 `catalog/v2/notes.json` (+6 -0) 📝 `catalog/v3/catalog.json` (+9 -9) 📝 `catalog/v3/notes.json` (+6 -0) 📝 `packages/gacha-forge/CHANGELOG.md` (+10 -0) 📝 `packages/gacha-forge/README.md` (+4 -0) 📝 `packages/gacha-forge/bundle-patches.json` (+148 -0) 📝 `packages/gacha-forge/client.js` (+661 -6) 📝 `packages/gacha-forge/manifest.json` (+6 -6) 📝 `packages/gacha-forge/server.mjs` (+35 -6) ➕ `packages/gacha-forge/src/audio-client.mjs` (+441 -0) ➕ `packages/gacha-forge/src/audio-en.mjs` (+98 -0) ➕ `packages/gacha-forge/src/audio-settings.mjs` (+23 -0) ➕ `packages/gacha-forge/src/audio-story.mjs` (+65 -0) 📝 `packages/gacha-forge/src/browser-presentation.mjs` (+23 -0) 📝 `packages/gacha-forge/src/player-choices-server.mjs` (+5 -1) _...and 6 more files_ </details> ### 📄 Description ## Linked issue Closes #1609. Owned by @SpicyMarinara (Codex). Depends on Pasta-Devs/Marinara-Engine#8167. Capability API **1.381** is declared. Commit `3dd1cb631` integrates current Agents staging `ba39b7a99`, preserving Gacha Forge 1.10.2's choice behavior/history and World Maps 1.7.1. Conflicts are resolved and regenerated package/catalog inputs pass local baseline and focused Node checks. Remaining before ready: the actual merged Engine source pin. The integrated installed-ZIP browser/lifecycle proof and local integration review are complete. The PR stays temporarily draft until the required pin is concrete, then returns to ready automatically. All required checks and a viable final-head Dottore verdict remain merge gates. ## Why this change Gacha Forge could not use assigned Engine voices or Game audio. Dialogue pacing ignored voice completion, and portrait frames omitted their bottom edge. ## What changed - Gacha Forge 1.11.0 adds per-world opt-in dialogue TTS and audio generation, stock music/effects, a mute button between Settings and fullscreen, and three precise channel volumes. - Autoplay waits for revealed text, voice completion and the configured pause (three seconds by default). Navigation and Skip cancel the active voice; choices wait for the player. - Character-card IDs select explicit voice assignments. Generated characters, thoughts, narration and characters without a voice stay silent. - World creation and existing-world settings share controls. Missing or quarantined explicit audio selections remain preserved through navigation, presets and creation. - Generation readiness refreshes after one minute or a generation-setting/connection change. Stale probes cannot follow a newer selection. Music-only and effects-only connections are labeled, generate only their supported channel, and keep the other channel on stock audio. Switching to an unavailable default clears the previous connection identity. - Home and story portraits include their bottom frame edge. Maintained source rebuilds into the shipped bundles, ZIP, catalogs and release notes. ## Validation and review `npm run check`, catalog lanes/locales/integrity/release notes, reversible bundle rebuild and whitespace checks pass. The integrated package passes **38 player-choice and 16 audio Node cases**, including the shipped server routes. Before/after controls reproduce both hosted MEDIUM findings and the additional previous-connection cache edge. The readiness/channel candidate `7c8f4436d` passed **15 unique installed-ZIP audio cases**: five each on desktop Chromium, mobile Chromium and mobile WebKit. These include actual Engine readiness/generation routes with an ephemeral local MP3 provider and cache reuse. The one-field connection-identity follow-up passed the affected case on all three engines at `d642f333e`; the preceding 15-case proof remains separate. The first observer attempt could not replace the Engine's frozen player; its failures/traces are retained. A delegating test wrapper corrected observation without changing the stock-tag assertion or product code. Earlier neighboring/UI coverage at `f24849d` passed 31 unique cases, and prior exact-artifact lifecycle proof covered install, update, saved-world/audio preservation through offline restart, and uninstall. The integrated `3dd1cb631` ZIP passed **27 unique browser cases**: nine each on desktop Chromium, mobile Chromium and mobile WebKit, covering audio and choices together. An exact 1.10.2 → 1.11.0 compiled-host lifecycle proof passed on frozen Engine `852d245ad`: install, saved-world creation, update, offline restart with saved audio/zero values, uninstall and route removal. A separate six-case choice→audio bridge proves that action/legacy choices make no TTS config read, while typed dialogue sends the performed utterance and assigned voice. Exact preservation checks confirm upstream choice client/tests, historical artifacts, all non-Gacha catalog entries/notes and reviewed audio modules are retained. The final metadata-pin rebuild will repeat exact-archive checks and lifecycle proof; earlier candidates remain separate evidence states. Local CodeRabbit: the original full review's two findings were fixed; earlier substantive rechecks completed with zero findings. The hosted-finding repair review reported one valid minor, reproduced and fixed. Its final `7c8f4436d` → `d642f333e` recheck completed with **zero findings**. The `d642f333e` → `3dd1cb631` staging integration recheck also completed with **zero findings** across 22 text files. ZIP bytes are validated separately from text review. [UI gallery, original PNG hashes and connection-channel supplement](https://gist.github.com/SpicyMarinara/3313103d98991707af156d36b9399071) — nine published evidence files and all 13 embedded PNGs verified across the two current `3dd` galleries. Game palettes are distinct from the dark Engine chrome; the 175% text panel is intentionally scrolled. All five game palettes have portrait-frame geometry coverage. Media playback is controlled; no paid commercial-provider calls or physical-device codec/autoplay claims. ## Manual verification - [ ] Manually verify dialogue, mute, volumes and autoplay on a physical phone. - [ ] Manually verify install/update, restart and removal through Download Agents. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Agents#1605
No description provided.