gillesdemey / node-record-lpcm16

:microphone: Records a 16-bit signed-integer linear pulse modulation code encoded audio file.
ISC License
212 stars 59 forks source link

can i use node-record-lpcm16 in browser /client-side? #56

Open yusuf987 opened 4 years ago

yusuf987 commented 4 years ago

this is not an issue but a question please accept my apology if i am asking silly question here
but i think this the best place for my question

QUESTION IS : I somehow able to stream my input voice via node.js but I need to achieve this over a website/browser/client-side

i want to know is this possible, has someone tried this please let me know if any possible solution

for now, I am going to try via browserfy, but I don't think this will work as node uses some of OS resources which is not possible with browsers

thanks and sorry :-)

prionkor commented 4 years ago

Hello, Did you find out? I am also seeking a browser based solution. I am failing to understand use case for this library if it is not available for frontend.

yusuf987 commented 4 years ago

Hello, Did you find out? I am also seeking a browser based solution. I am failing to understand use case for this library if it is not available for frontend.

for browser its quite easy and do not require any third party library you can use navigator.getUserMedia for getting stream of audio and if you are using browserfy you will get many library as well for same result .... i was looking for my electron app (desktop/mac app) but i still didn't find any solution

FrenchMajesty commented 2 years ago

@yusuf987 How have you gone about it? I am aware that browser-side audio recording is possible through navigator.getUserMedia but the problem is that the audio chunks received are in .webm format which is difficult to be partially processed as opposed to the chunks made available through node-record-lpcm16's stream.