Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Playing Sound In Windows

DZone's Guide to

Playing Sound In Windows

·
Free Resource

>>> from winsound import *

>>> f = "C:/Windows/Media/chimes.wav"
>>> PlaySound(f, SND_FILENAME)

>>> PlaySound("SystemExit", SND_ALIAS)

See documentation.
Topics:

Opinions expressed by DZone contributors are their own.

THE DZONE NEWSLETTER

Dev Resources & Solutions Straight to Your Inbox

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

X

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}