vosk-api icon indicating copy to clipboard operation
vosk-api copied to clipboard

Replace ffi-napi with koffi to support Electron

Open ChaselDutt opened this issue 1 year ago • 5 comments

Error with Electron and ffi-napi #238

ChaselDutt avatar Nov 06 '24 15:11 ChaselDutt

Great idea, ff-napi is doomed. Let me check koffi!

nshmyrev avatar Nov 13 '24 21:11 nshmyrev

I have implemented the workaround solution for my own purposes using ffi-rs (not koffi). Here's the gist.

Should I make a PR?

I haven't tested it with Electron, and also I have some concerns about this call: libvosk.vosk_recognizer_accept_waveform.async. But for the rest, it works perfectly in Node.js 22 without any node-gyp issues

Related issues:

  • #1600
  • #1465
  • #1613

Boorj avatar Jan 21 '25 12:01 Boorj

any updates on this? basically the node package is unusable currently :(

tomh4 avatar Nov 14 '25 14:11 tomh4

Guys, very busy here, we'd so grateful for contributions!

nshmyrev avatar Nov 15 '25 13:11 nshmyrev