See this for an example sound plugin for JQuery:
Also see this example of listening to validation feedback in a Mendix widget:
Also see a custom widget I had built to play sounds:
There's a test project in there. If I recall, you could show or hide a container with this widget in it to trigger the sound. I think you could use this widget directly by creating a few boolean attributes for the different sounds, putting this widget in a conditionally visible container based on those booleans, then triggering changes to those booleans in validation microflows.