>>912
https://www.google.co.jp/amp/s/amp.reddit.com/r/tasker/comments/2fc1l5/how_to_detect_whether_or_not_audio_is_playing_in/
ここの方法でやることができました。ありがとうございました。