How to access aplay from my snap

? how can my snap access alsa-utils aplay

Without building it into my snap.

try to look at it from a different angle, snaps can be installed on a gazillion of different distros, how could you guarantee that aplay exists on the host or distro where your snap gets installed without shipping aplay …

… how can you make sure the aplay command you find is at a version that functions as you expect it … the distro aplay might be versions ahead or behind, potetially using completely different syntax or being different due to distro patches …

snap packages are/should be self contained to make sure your snap can run under all conditions it gets installed under … take a look at:

to see how other people use alsa in snaps.