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}`); }