vincentsaluzzo / node-microphone

microphone is a simple module that use `arecord` ALSA tools method to capture sound from a USB Microphone
56 stars 48 forks source link

On linux the hw# is not gauranteed #11

Open LucasHill opened 8 years ago

LucasHill commented 8 years ago

I wasn't getting any output and I noticed that the command for arerecord was hardcoded to use device 1,0 where my microphone was showing up under 0,0. So for me this would be the correct command:

arecord -D plughw:0,0 -f dat

Perhaps the code need to be amended to determine which number the device is on.

mishaldholakia commented 8 years ago

Thank you very much for providing this information.

tiny-tinker commented 7 years ago

I've read you can set it with a .arecordrc file, but I haven't had much luck with that option, but maybe the command in the code is overriding it.