Mavericks: No sound after sleep
I could fix the problem by reloading the kernel extension for audio with these command:

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