gillesdemey / node-record-lpcm16

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

Raspberry Pi3 Electron #24

Open sakirtemel opened 7 years ago

sakirtemel commented 7 years ago

Hi,

I'm running it with snowboy, and just after I start I'm running an electron app which is also recording inside Chrome. This configuration works fine on Mac, but when it comes to Raspberry Pi 3 Raspbian, the first one which starts to record works only. (https://github.com/Kitt-AI/snowboy/blob/master/examples/Node/microphone.js#L35)

When I verbose, I'm seeing that it stops after electron starts, when I disable voice recording at Chrome side this command is always being repeated. Is there something that I can do for it to work?

Recording 4096 bytes silence Recording 1430 bytes sound End Recording: 107.788ms

lulebe commented 7 years ago

I actually have the same error messages. Further investigation actually led to this discovery: Using both the latest 0.2.0 as well as the older 0.1.7 Version, creating a first stream even without electron does not work. The first one does work standalone, but it doesn't when using electron, for me at least. Unfortunately I couldn't figure out any further detail. Once I do, I'll post it here.

evancohen commented 7 years ago

@sakirtemel you might want to take a look at sonus-electron-boilerplate, which takes care of some of the more fiddly issues.