How To Play a Wav

From IronPython Cookbook

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:


Back to Contents.

TOOLBOX
LANGUAGES