The audio randomly comes and goes while the picture is fine, and your TV is hooked up to a cable box or a satellite receiver with an HDMI cable.
Chances are good that there is a software issue either with the box or the TV. First, try rebooting the box by removing power from it for about 30 seconds and then plugging it back in and turning it on. After the box boots up see if the problem persists. If you still experience the problem, then perform a software update on the television. If that doesn’t fix it, then call your cable TV or satellite TV service provider. If there are more than one HDMI cables plugged into the TV, a possible workaround might be to disconnect the ones you are not using and see if that works.