Mac – “this Emacs binary lacks sound support”

audioemacs

I'm trying to get Aquamacs Emacs to play a sound.

I have this:

(add-hook 'org-after-todo-state-change-hook 'my-org-after-todo)
(defun my-org-after-todo ()
(play-sound-file "~/Library/Sounds/InkSoundStroke3.aif"))

But I get this error:

This Emacs binary lacks sound support

Any ideas?

Best Answer

I had the same problem in 2011 and fixed it with a little elisp package which I am now sharing in https://github.com/leoliu/play-sound-osx. Let me know if it works for you since I can't remember using it much :(