I'm having a similar problem as you.
setWavPlayer("/Applications/VLC.app/Contents/MacOS/VLC")
sort of works, but generates warning messages and you have to manually stop the command after the sound is done by clicking the red stop sign.
Did you find any other way?