Pulseaudio has module-position-event-sounds which does something similar.