How To Play a Wav

This short example plays a WAV format sound file on a separate thread.

import clr from System.Media import SoundPlayer sp = SoundPlayer sp.SoundLocation = "C:\my.wav" sp.Play raw_input(">")

Microsoft documentation:
 * SoundPlayer Class

Back to Contents.