Audio turns off when screen turns off when I close the lid on my laptop or just the computer goes to sleep and when i wake the laptop the audio stays off
Yes, it does. Perhaps you might look at alternatives to sending your PC to sleep? Few devices beyond tablets and phones have connected standby. Perhaps just turning off the screen would be enough, rather than full sleep mode? Windows offers a significant degree of power saving adjustability, try making a power scheme that's to your liking.