You don't need AI for that. 20 years ago my neighbors had a small device that would automatically mute the TV whenever the ads started playing and unmuted when they finished. No idea how it worked but for sure it didn't have a fancy neural network inside.