node-microphone icon indicating copy to clipboard operation
node-microphone copied to clipboard

Device option is ignored on Mac OS

Open juliendargelos opened this issue 5 years ago • 3 comments

https://github.com/MexXxo/node-microphone/blob/ba88bc30b782eeb4f67c452da9bb4e8c5a8be9c7/index.js#L57-L63

juliendargelos avatar May 13 '20 11:05 juliendargelos

I can't test on a mac right now, can we add the device option to mac? If yes, do you have a manual / cmd api description for me?

Flowr-es avatar May 17 '20 05:05 Flowr-es

If you want to provide a PR to add the device option for mac, please also add yourself to the contributors :-)

Flowr-es avatar May 17 '20 05:05 Flowr-es

I could not test on Mac for other reasons, but the highlighted lines from my link show that the option is not used in the spawn() call, while it is used for Linux and Windows.

I guess you could use it in a similar way as Windows (since it’s also Sox). I did not make a PR because I don’t know Sox well and did not had time to explore the doc yet.

juliendargelos avatar May 17 '20 10:05 juliendargelos