I have this issue where my sound / audio just stops working on my Mac / OSX. Very annoying, and as I find myself searching for the command every time I have this issue I figured I would simply drop it on my blog as a reminder, much easier to find, at least for me. How do I get my audio working again? Well I simply open a terminal and kill the service responsible for it. It is then auto restarted and it starts working again (you can also kill it through the UI):
sudo killall coreaudiod
I have this problem in OSX 10.14.1, but also had it in 10.14 and 10.13.x. if anyone knows how to solve the problem please leave a comment!