serenadeai / speech-recorder

speech-recorder is a node.js module for streaming audio from a device's microphone and filtering for speech.
MIT License
87 stars 20 forks source link

ASIO build & electron #28

Closed tillderoquefeuil closed 1 year ago

tillderoquefeuil commented 1 year ago

Hi there and thank you for your awsome work!

Recently I needed to work with multi-channel and an asio device. I forked the repo and add those features.

Working in a small node project everything is going pretty fine. (except some crashes on stream opening [like one on ten times] and returns a 3221225477 exit code)

But when I use it in an electron project it I can't even open a stream. It instant crash every time with a 3221226505.

I'm aware it's not a real issue here, I'm stuck and I hope it rings a bell to someone here.

the forked repo

Thanks in advance

dsouza95 commented 1 year ago

@tillderoquefeuil did you manage to make your electron project work? I am having the same problem on my electron application when I run the production build (works fine in development though).

tillderoquefeuil commented 1 year ago

Hi @dsouza95 ! Unfortunately I didn't find a way to do it with SpeechRecorder.

I did my own package using Audify module (it embeds an RtAudio binding that already work with [most of] Asio devices) and recreate a basic SpeechRecorder logic with WebRtcVad and SileroVad. I did it in js so it's not as good as the original but it works.

I can push a repo with it if you want me to, let me know!

dsouza95 commented 1 year ago

Thanks for the reply @tillderoquefeuil! I actually have just found a way to fix the problem (at least, for my case), by fixing the asar paths (see #31). But it is good to know there are alternatives :)

tmacwill commented 1 year ago

apologies for the hugely delayed response here! I believe @dsouza95 is correct above, so will close out this issue as a duplicate.