Skip to content

Promote to production: Voice to Text tool - #62

Merged
slaveofcode merged 3 commits into
mainfrom
develop
Jul 31, 2026
Merged

Promote to production: Voice to Text tool#62
slaveofcode merged 3 commits into
mainfrom
develop

Conversation

@slaveofcode

Copy link
Copy Markdown
Owner

Ships the new on-device Voice to Text (Whisper) tool (PR #61) to production.

🤖 Generated with Claude Code

Kresna and others added 3 commits August 1, 2026 05:33
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Transcribe speech to text fully on-device via Whisper (transformers.js /
onnxruntime-web, WebGPU->WASM). Record from the mic or upload an audio/video
file; audio never leaves the browser (only model weights are fetched from CDN
on first use, like the OCR tool).

- Models: English Fast (whisper-tiny.en), English Accurate (base.en),
  Multilingual (base). Model-download progress bar.
- Output: editable plain text, inline timestamped view, and SRT/VTT subtitle
  export from Whisper segment timestamps. Copy + download .txt/.srt/.vtt.

Pure tested logic in stt.lib.ts (mixToMono, segmentsToText, time formatters,
segmentsToSrt/Vtt). SDK boundary stt.engine.ts (only file touching
transformers.js). Audio decode in stt-audio.lib.ts (decodeToMono16k).
useAudioRecorder hook (MediaRecorder, typed errors, track cleanup) with tests.
transformers chunk added to workbox globIgnores.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
feat(voice-to-text): on-device speech-to-text (Whisper)
@slaveofcode
slaveofcode merged commit 044dba8 into main Jul 31, 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