I have this set up automatically with our smart speaker thing. Whenever it detects someone arriving at home, it plays a jingle from a playlist I set up for the purpose. They are all short - I think the longest is about 30s. They are intros from TV shows and jingles from videogames.
The “Shortcuts” app for iPhone. Not sure what the Android equivalent is.