Sierra no sound in headphones after sleep
You can try:

sudo kextunload /System/Library/Extensions/AppleHDA.kext
sudo kextload /System/Library/Extensions/AppleHDA.kext
sudo pkill coreaudiod


This means:


unload sound kernel module,
reload sound kernel module,
stop sound service, il will restart automatically.