TTS holding onto devices for 5 minutes

I currently have an automation setup to do TTS to some google speakers / nest hubs in my home. When this happens, it takes over the devices and casts the audio…but, it appears as if it holds onto the device for 5 minutes as I can see on my Google Nest hub that it has the cast audio feature up on the screen for 5 exact minutes. Is there a way in the automation to tell it to “release” or “let go” or “stop casting” ? There’s no need to hold on for 5 minutes.