mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #3381] [Feature]: Expose/export generated TTS clips — already persisted (IndexedDB) but unreachable #1828
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#1828
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @kolacheee on GitHub (Jul 8, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3381
Originally assigned to: @SpicyMarinara on GitHub.
What's being requested
Marinara already saves every generated TTS clip to disk (a persistent IndexedDB cache), but there's no UI to retrieve, replay, or export them — unlike generated images, which are both persisted and surfaced in a gallery. The request is a small export/download affordance (or an audio gallery) that reads the existing cache. No new persistence layer is needed — the storage is already there; only the surface is missing.
What's already in place (verified against source)
packages/client/src/lib/tts-audio-cache.tsmaintains a persistent IndexedDB cache: DBmarinara-tts-audio-cache, storevoiceLines(+ avoiceLineMetastore), capped at 750 clips / 100 MB (lines 5-11), with LRU pruning (114-149). Every generated clip is written viaputPersistentBlob(170-198) insidegetOrCreateCachedTTSAudioBlob(212-265).ChatArea.tsx) and Game (GameNarration.tsx) — plusChatMessage.tsx,GameCombatUI.tsx, andtts-dialogue.ts.packages/server/src/routes/tts.routes.tsis a pure streaming proxy — it stores only the TTS config / API key (parseStoredConfig), not audio. So persistence is entirely the client-side cache.getCachedTTSAudioBlob) — there is no enumeration/list/export API, and no consumer other than playback. So the clips sit on disk but are unreachable by the user.Why
Generated media should be retrievable. Images already are (persisted + gallery). TTS clips are persisted the same way but have no surface — the gap is the missing UI, not missing storage.
Suggested approach
Add a list/enumeration helper to
tts-audio-cache.ts(iterate thevoiceLines/voiceLineMetastore) and a small UI that plays and exports from the existing cache — a download/export button on a played clip, and/or an audio gallery mirroring the image gallery. Optionally associate clips with their message/speaker for labeling. No changes to how clips are generated or stored are required.AI-investigated against the current tree; the IndexedDB cache, its write sites, the key-only getters, and the proxy-only server route were all read and confirmed. Filed as an enhancement per the reporter's framing.
@SpicyMarinara commented on GitHub (Jul 8, 2026):
Addressed in #3388 and merged to staging.