TooTallNate / node-speaker

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

OSX - Illegal Instruction:4 #95

Open ghost opened 7 years ago

ghost commented 7 years ago

Everything works fine and I'm getting the audio to play..

But, I'm getting a "Illegal Instruction: 4" message..

stuarttayler commented 7 years ago

i get the same problem, any help much appreciated!

svaghar commented 7 years ago

For me, Speaker plays the audio on the Mac (Sierra MacBook Pro) and then it crashes the process. It works fine on raspberry pi.

ghost commented 7 years ago

By the lack of answers, looks like the creator/maintainer is not working on this project anymore..

bummer :(

LinusU commented 7 years ago

I haven't been able to reproduce this, and there isn't that much info provided here to be able to investigate further...

ghost commented 7 years ago

install Node.js on mac with latest OSX, then npm install node-speaker and write some code get it to play some audio..

YannickRobin commented 7 years ago

Installation of the latest versions for NodeJS did not help me.

Changing the Audio Backend with the command npm install speaker --mpg123-backend=openal fixed the issue for me.

svaghar commented 7 years ago

Thanks that worked for me too!

On Fri, Mar 24, 2017 at 9:19 AM, YannickRobin notifications@github.com wrote:

Installation of the latest versions for NodeJS did not help me.

Changing the Audio Backend with the command npm install speaker --mpg123-backend=openal fixed the issue for me.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/TooTallNate/node-speaker/issues/95#issuecomment-289070066, or mute the thread https://github.com/notifications/unsubscribe-auth/AY8PaDdDWo38p5evGToSzUiWVCeBgIPiks5ro-0ZgaJpZM4Lp_Bt .

dsteinman commented 4 years ago

Installation of the latest versions for NodeJS did not help me.

Changing the Audio Backend with the command npm install speaker --mpg123-backend=openal fixed the issue for me.

This problem still exists, and if that backend is the only way to fix it, shouldn't the module do this by default?

AnabetsyR commented 4 years ago

I updated to Node v13.x and then ran npm install speaker --mpg123-backend=openal and it worked!

dsteinman commented 4 years ago

I updated to Node v13.x and then ran npm install speaker --mpg123-backend=openal and it worked!

This does work, but it turns out to be enormously annoying. If any NPM module requires the "speaker" module, then it won't work because it installs the default which fails on OSX. You end up with a package.json that won't work on OSX. This should really be changed in the speaker npm module. And if it doesn't get fixed I need to fork this module.

AnabetsyR commented 4 years ago

I see. I'm hoping I don't need to require the speaker beyond this point. But yes, a definitive fix would be great!

Whobeu commented 4 years ago

I am getting the "Illegal Instruction: 4" message under macOS 10.14.6 (Mojave) and Node.js 12.18.3. I tried the command "npm install speaker --mpg123-backend=openal" and it eliminates the error message but the audio is now choppy. If I remove the argument the error message comes back but the audio is fine.

I can live with the error message as it seems to be informational.