Add this to your ~/.bash_profile function fixaudio() { sudo kill `ps -ax | grep 'coreaudiod' | grep 'sbin' |awk '{print $1}'` } then run . ~/.bash_profile fixaudio