There used to be a Python module called pyglet that allowed graphics and sound. I can't find it anywhere.

Recommended Answers

Windows binaries are also still available at:

Pyglet uses AVbin for sound, so you could check that:

Jump to Post

All 3 Replies

Thanks, I got it to go!

playing sound files using pyglet
download and install

avbin.dll is included
so pyglet can play .wav  .mp3  .ogg sound files
(but not .mid Midi files)

import pyglet

# pick a sound file you have, or one of those below
# in this case file names are case sensitive
#sound_file = 'drums.ogg'
#sound_file = 'cool_f.wav'
sound_file = 'Boing.mp3'

music =
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.