• v3 0dc6812f38

    FIX: Browser Whisper - 100% self-hosted, zero CDN dependencies
    Some checks failed
    Build TWA APK / build-apk (push) Has been cancelled
    Build & Push Docker Image / build (push) Has been cancelled

    Ghost released this 2026-04-01 01:12:21 +02:00 | 368 commits to main since this release

    FINAL WORKING SOLUTION:

    Previous attempts failed because:

    • transformers.js v2.17.2 is ES module-only
    • Module workers require complex CSP and external imports
    • importScripts() doesn't work with ES modules

    Solution:

    • Use transformers.js v2.6.2 (has worker-compatible UMD build)
    • Bundle library + models, serve entirely from our server
    • Classic worker with importScripts() - no CSP issues

    What's self-hosted:

    • transformers.min.js (760KB) - at /models/transformers.min.js
    • Whisper models (42MB) - at /models/Xenova/whisper-tiny.en/

    Worker loads:

    1. importScripts('/models/transformers.min.js') - OUR SERVER
    2. Loads models from /models/ - OUR SERVER
    3. ZERO external network calls
    4. Works in any network (firewalled, air-gapped, etc.)

    This is the production-ready, truly offline solution.

    Downloads