setWavPlayer("playwave")
# tries to set the command "playwave wavfile.wav" as the
# preference for playing wav files with the play command.
# If successful,
WavPlayer()
# returns the string "playwave" afterwards.
Run the code above in your browser using DataLab