Make it possible to detect the playstate (playing or paused) in Tasker
Eric Phelps commented
Try using "Tasker Is Music Playing" plugin. Pay attention to the directions: You need a profile, a task, and a 2-second delay. But it works! I used it to see if I need to pause/restart podcasts when Tasker voices my text messages.