Hi
Well, depending on what phone and OS version you have, the simplest thing to do is to manually enable "do not disturb" in the settings when you want to listen. (Or turn off notifications in the settings - there should be a way to disable them for all apps on any phone)