I’m honestly not sure if I can. I’m using pulseaudio interface to enable control over host system’s pulseaudio with pactl contained within the snap. If audio-playback and audio-record only do what it says on the tin, I don’t suppose I can.
Also, since my script is entirely pulse-audio specific, I don’t really plan on supporting other sound servers in the short-term.