Transcribe.js 2.0.3
Speech to text in the browser.
import createModule from "@transcribe/shout";
import { FileTranscriber } from "@transcribe/transcriber";
// create new instance
const transcriber = new FileTranscriber({
createModule,
model: "ggml-tiny-q5_1.bin", // path to ggml model file
});
// init wasm transcriber worker
await transcriber.init();
// transcribe audio/video file
const result = await transcriber.transcribe("my.mp3");