voskify
v0.1.0
Published
A Node.js wrapper for Vosk via koffi.
Downloads
240
Maintainers
Readme
Voskify
A Node.js wrapper for Vosk via koffi.
✨ Features
- 🚀 Zero compilation – No
node-gyphassle. - 📡 Fully offline – All speech recognition runs locally, no network required.
- 🎙️ WAV in, text out – Accepts standard
.wavfiles and returns recognized text in a few lines of code.
📦 Installation
npm install voskify🚀 Quick Start
Download a Vosk model (e.g. vosk-model-small-en-us-0.15) from the Vosk models page and place it in a local models directory. Then use the following code to transcribe a WAV file:
import { VoskModel } from "voskify";
const model = new VoskModel("./models/vosk-model-small-en-us-0.15");
const recognizer = model.createRecognizer();
await recognizer.acceptWaveform("./audio/sample.wav");
console.log(recognizer.getFinalResult());
model.free();🧱 Limitations
- Only Windows is supported.
🙏 Acknowledgements
Thanks to the following open-source projects:
