If you could also do /execute as at run playsound ~ ~ ~ [volume] [pitch] [minimumVolume]want it to alwayalways work at the position of the player, you could also do this:
execute as <player> at <player> run playsound <sound> <player> ~ ~ ~ [volume] [pitch] [minimumVolume]