[GH-ISSUE #6514] [Feature]: Add per-message TTS audio cache clearing #3650

Closed
opened 2026-10-21 06:05:29 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @menemorofaan on GitHub (Sep 21, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6514

Originally assigned to: @SpicyMarinara on GitHub.

What problem does this solve?

Currently, dialogue TTS audio is aggressively cached in browser IndexedDB.

If an audio clip has generation artifacts/glitches, or if the user modifies their local TTS backend or launch script (e.g. adding pre-translation, switching models, adjusting voice settings), there is no way to re-synthesize or invalidate the voiceover for a single message without wiping the entire browser database (marinara-tts-audio-cache).

Doing so wipes all cached voice lines across all other chats and characters, which is unnecessarily destructive for a single bad line.

Proposed solution

Add an action button (e.g. an Eraser icon) to the chat message toolbar next to the Speak button that purges the cached audio for that specific message (both memory cache and IndexedDB entries, including text aliases).

Clicking the button drops the clip from the cache, allowing the user to click the standard Speak button immediately afterwards to request a fresh generation from the provider.

Alternatives considered

  • Wiping site data / IndexedDB entirely (destructive to other saved clips).
  • Tweaking global TTS speed by 0.01 to bust the config signature (inconvenient workaround that forces re-synthesis globally).
  • Modifying punctuation or inserting zero-width spaces into message text (awkward hack).

Additional context

I already have a working implementation and a branch tested locally, and will link a PR targeting staging to this issue.

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @menemorofaan on GitHub (Sep 21, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6514 Originally assigned to: @SpicyMarinara on GitHub. ## What problem does this solve? Currently, dialogue TTS audio is aggressively cached in browser IndexedDB. If an audio clip has generation artifacts/glitches, or if the user modifies their local TTS backend or launch script (e.g. adding pre-translation, switching models, adjusting voice settings), there is no way to re-synthesize or invalidate the voiceover for a single message without wiping the entire browser database (`marinara-tts-audio-cache`). Doing so wipes all cached voice lines across all other chats and characters, which is unnecessarily destructive for a single bad line. ## Proposed solution Add an action button (e.g. an Eraser icon) to the chat message toolbar next to the Speak button that purges the cached audio for that specific message (both memory cache and IndexedDB entries, including text aliases). Clicking the button drops the clip from the cache, allowing the user to click the standard Speak button immediately afterwards to request a fresh generation from the provider. ## Alternatives considered - Wiping site data / IndexedDB entirely (destructive to other saved clips). - Tweaking global TTS speed by 0.01 to bust the config signature (inconvenient workaround that forces re-synthesis globally). - Modifying punctuation or inserting zero-width spaces into message text (awkward hack). ## Additional context I already have a working implementation and a branch tested locally, and will link a PR targeting `staging` to this issue. ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
Author
Owner

@SpicyMarinara commented on GitHub (Sep 22, 2026):

Thank you, pookie! Left some requests under the PR.

<!-- gh-comment-id:5772404061 --> @SpicyMarinara commented on GitHub (Sep 22, 2026): Thank you, pookie! Left some requests under the PR.
Author
Owner

@SpicyMarinara commented on GitHub (Sep 23, 2026):

Implemented in #6515 and merged to staging. The audio menu now clears cached voice for one message, without clearing the other messages.

<!-- gh-comment-id:5786556666 --> @SpicyMarinara commented on GitHub (Sep 23, 2026): Implemented in #6515 and merged to staging. The audio menu now clears cached voice for one message, without clearing the other messages.
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-Engine#3650
No description provided.