Skip to content

Promote to production: voice-to-text worker + persistent cache - #83

Merged
slaveofcode merged 3 commits into
mainfrom
develop
Aug 1, 2026
Merged

Promote to production: voice-to-text worker + persistent cache#83
slaveofcode merged 3 commits into
mainfrom
develop

Conversation

@slaveofcode

Copy link
Copy Markdown
Owner

Runs transcription in a Web Worker (no UI freeze, live elapsed timer) and requests persistent storage so the model isn't evicted/re-downloaded.

🤖 Generated with Claude Code

Kresna and others added 3 commits August 1, 2026 18:15
Transcription ran on the main thread, so the whole page froze during inference —
which on the larger 'Better' model + a 30s clip on a phone can take minutes and
looks hung (it wasn't; a shorter clip completes fine).

- Move inference into a dedicated Web Worker (stt.worker + stt.client). The main
  thread stays responsive: the audio player works, and progress updates flow.
  A single long-lived worker keeps the in-worker model cache warm across runs.
- Show a live elapsed timer while transcribing (now that the thread is free), and
  warn that the 'Better' model is much slower on phones.

545 tests · lint clean · build green (stt.worker chunk emitted; transformers stays
in workbox globIgnores).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…nload

On mobile the browser can evict the cached Whisper model between sessions under
storage pressure, forcing a re-download on refresh. Request persistent storage
(navigator.storage.persist) so the origin's cache isn't evicted.
feat(voice-to-text): Web Worker (no freeze) + persistent model cache
@slaveofcode
slaveofcode merged commit f21b59b into main Aug 1, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant