Fix audiobook export modal visibility and eliminate 4-10s TTS delay for narrator blocks

This commit is contained in:
mARTin-B78 2026-08-23 11:30:10 +02:00
parent 1d8e0ff2a6
commit ee17ed97d1
4 changed files with 9 additions and 3 deletions

View File

@ -5,6 +5,12 @@ Follows [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) · versioned wi
--- ---
## [1.22.1] — 2026-08-23
### Fixed
- **Audiobook Modal Bundle.** Explicitly rebuilt the production JS bundle so the modal UI changes actually surface for users instead of being suppressed by browser caching.
- **Narrator TTS Delay.** Eliminated a 4-10 second playback delay when encountering narrator blocks. The pre-decoder now correctly looks ahead for all synthesized audio (including narrator blocks), rather than strictly filtering for dialogue lines, preventing synchronous mid-playback decoding on ARM CPUs.
## [1.22.0] — 2026-08-23 ## [1.22.0] — 2026-08-23
### Added ### Added

View File

@ -1 +1 @@
1.22.0 1.22.1

File diff suppressed because one or more lines are too long

View File

@ -3745,7 +3745,7 @@ async function playPreDecoded(lineIdx, blob, text) {
function findNextCachedLine(fromIdx) { function findNextCachedLine(fromIdx) {
for (let i = fromIdx; i < rehState.lines.length; i++) { for (let i = fromIdx; i < rehState.lines.length; i++) {
if (rehState.lines[i].type === 'dialog' && rehState.synthCache.has(i)) return i; if (rehState.synthCache.has(i)) return i;
} }
return -1; return -1;
} }