serenadeai / speech-recorder

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

Device list not being updated #36

Closed dsouza95 closed 1 year ago

dsouza95 commented 1 year ago

I would like to check for added/removed audio devices every X seconds in my application. For that, I am calling the devices method periodically. It seems that regardless of any changes to the device list, the devices method is returning the list of devices that were available when the module was first imported. @tmacwill I would be happy to work on a fix for that, but I lack the experience with portaudio, so any hints on why this is happening or how to fix it would be greatly appreciated.