Please assist: computer sound works intermittently

I’ve been having problems with my computer’s sound. The speakers dont work. I can get it to work if i go to the device manager and do scan for hardware changes, but then after a few minutes it stops working. I’ve tried uninstalling the speakers and restarting my computer, but still the problem eventually comes back. it also effects my youtube videos which is strange. I’ll notice that youtube videos wont play when there is no sound, but once i hit scan for hardware changes, the videos play normally.

I changed your topic title to be more informative.

What sound card or on board sound chip are we talking about? Are there recent changes to your system that could point a finger? Think a recent Windows update with updated drivers in the optional updates. Did you try updating to the latest drivers from the manufacturer of the chips being used?