TooTallNate / node-speaker

Output PCM audio data to the speakers
648 stars 145 forks source link

Does Not Work With Node.js 15+ #163

Closed hellometa closed 2 years ago

hellometa commented 3 years ago

Attempts to use node-speaker with Node.js 15.x.x and 16.x.x fail. There is no error but the call to node-speaker returns immediately. Tried installing after a clean install of 16.x.x, with build tools, and there was no change. Node.js 14.x.x and earlier still work fine. Not sure if it is an issue with node-gyp or some internal change to Node.js starting in 15 that blocks it from working.

tcollinsworth commented 2 years ago

What OS are you using? Works on Ubuntu 20.04.3 LTS with node 16.13.2.

hellometa commented 2 years ago

Windows 10. Tested releases 20H1 and up. Any node.exe prior to 15 works fine. Node's 15, 16 and 17 simply return immediately without any reported error.

UPDATE: Tested with Node.js 18 Nightly and does not work on Windows 10.

hellometa commented 2 years ago

Problem turns out not to be with speaker. Problem is in a module passing streaming data via pipe to speaker. That module has broken in Node 15+.