Loop a sound clip?

My HA is in a Raspberry Pi and I have a speaker attached to it.

I plan to create an automation (such as timer or alarm clock) to trigger a sound clip to play in loop until another automation to stop it.

Has anyone done this?

1 Like

Could you set initial value for input boolean then use it to play the sound loop and use it again to stop (when the value is different from prior value) when the 2nd automation will start?