Pause spotify, use TTS, continue spotify

This is something that I also would like to do (to resume playing after a TTS notification).
I found a thread that might help into achieve this, but if possible, we would have to adapt to our needs, since it is a islamic prayer system. It uses Google home but I think it can be used with CCA instead.
The thread is here.

What This Automation Does: When it is time for the prayer, in the below sequence ->

All the media in the house is muted/paused
The volume of the Google Home devices is adjusted (super low for early morning ~5am prayer)
The Adhan plays 5 times a day at the correct prayer time. All at the same time through all the speakers (synchronized)
All the media in the house is un-muted/un-paused to resume previous activity and state