Learning IDE - Controlling Sonos Song selection?

Hi;
how can i dynamically assigned different names and then according to each name play different music from sonos