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

recorders module loading issue #52

Closed laljikanjareeya closed 5 years ago

laljikanjareeya commented 5 years ago

getting below error even I have installed sox:

Error: No such recorder found: sox

recorder module path is getting wrong on below line:

https://github.com/gillesdemey/node-record-lpcm16/blob/9f27f0985e3c4c045c382f3697b49211e4403dad/recorders/index.js#L5

fix:

const recoderPath = path.resolve(__dirname, recorderName) 
gillesdemey commented 5 years ago

Thanks for reporting! Fixed in https://github.com/gillesdemey/node-record-lpcm16/commit/69be9ba2245eda74fbfa742e882921a0dc8e51f3 and released as v1.0.1