browser-whisper

v0.1.0

Native WebGPU audio transcription. Connects directly to WebCodecs (mediabunny) and Transformers.js for zero-server inference.

bun add browser-whisper
import { BrowserWhisper } from 'browser-whisper';

// 1. Initialize the library
const whisper = new BrowserWhisper({ model: 'whisper-base' });

// 2. Transcribe an audio/video file
for await (const { text, start, end } of whisper.transcribe(file)) {
    console.log(`[${start}-${end}s]: ${text}`);
}