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

Sox must be started with -d parameter to start continuous recording on Windows #21

Closed j-era closed 5 years ago

j-era commented 7 years ago

see: https://github.com/artcom/node-record-lpcm16/commit/74649305e4a774865d59df48068286844e352641

gillesdemey commented 7 years ago

Seems to cause a rec WARN coreaudio: coreaudio: unhandled buffer overrun. Data discarded. exception on MacOS.

Can you elaborate on why this particular flag is mandatory for Windows?

sngc1 commented 6 years ago

The same issue on Windows 10 with sox-14.4.1, tested using https://github.com/googleapis/nodejs-speech/tree/master/samples (replaced recordProgram from rec to sox)

Without -d (Use the default audio device) in cmdArgs, it immediately stops sending audio stream.