Release completed voice preview blob URLs
This commit is contained in:
parent
77758acdd6
commit
2d5ecea53a
@ -5,6 +5,11 @@ Follows [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) · versioned wi
|
||||
|
||||
---
|
||||
|
||||
## [1.20.46] — 2026-08-19
|
||||
|
||||
### Fixed
|
||||
- **Completed synthesized voice previews now release their Blob URLs.** Repeated preview playback no longer retains every generated clip in browser memory.
|
||||
|
||||
## [1.20.45] — 2026-08-19
|
||||
|
||||
### Fixed
|
||||
|
||||
@ -10,7 +10,7 @@
|
||||
<meta name="format-detection" content="telephone=no">
|
||||
<meta name="color-scheme" content="light dark">
|
||||
<meta name="theme-color" content="#2563EB">
|
||||
<meta name="app-version" content="1.20.45">
|
||||
<meta name="app-version" content="1.20.46">
|
||||
<link rel="manifest" href="/manifest.webmanifest">
|
||||
<link rel="icon" href="/static/icon.svg" type="image/svg+xml">
|
||||
<link rel="apple-touch-icon" href="/static/icon.svg">
|
||||
@ -27,7 +27,7 @@
|
||||
|
||||
<!-- ── Core styles (local — no CDN dependency for first paint) ────────── -->
|
||||
<link rel="stylesheet" href="/static/vendor/mdi/materialdesignicons.min.css">
|
||||
<link rel="stylesheet" href="/static/style.css?v=1.20.45">
|
||||
<link rel="stylesheet" href="/static/style.css?v=1.20.46">
|
||||
|
||||
|
||||
<!-- ── Flag icons — non-blocking (loaded async, icons appear after JS) ── -->
|
||||
@ -378,7 +378,7 @@ window.toggleNavTree = function(treeId, chevronId) {
|
||||
</script>
|
||||
|
||||
<!-- loader.js: fetches sections → loads JS modules → removes skeleton -->
|
||||
<script src="/static/loader.js?v=1.20.45"></script>
|
||||
<script src="/static/loader.js?v=1.20.46"></script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@ -3252,7 +3252,17 @@ function makeVoiceRow(v) {
|
||||
$('lib-audio-label').textContent = v.id + ' · original recording';
|
||||
}
|
||||
bar.style.display = '';
|
||||
audio.onended = () => { setLibraryPlayButtonState(playBtn, 'idle'); _activePlayVoiceId = null; };
|
||||
audio.onended = () => {
|
||||
setLibraryPlayButtonState(playBtn, 'idle');
|
||||
_activePlayVoiceId = null;
|
||||
// A synthesized preview is only needed while it is playing or
|
||||
// paused for resume. Once it has ended, release the Blob URL so a
|
||||
// sequence of previews cannot retain every generated clip in RAM.
|
||||
if (_activePlayUrl) {
|
||||
URL.revokeObjectURL(_activePlayUrl);
|
||||
_activePlayUrl = null;
|
||||
}
|
||||
};
|
||||
audio.onpause = () => { if (_activePlayButton === playBtn) setLibraryPlayButtonState(playBtn, 'idle'); };
|
||||
audio.onplay = () => { setLibraryPlayButtonState(playBtn, 'playing'); };
|
||||
await audio.play();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user