#!/usr/bin/env python import pyglet mp3 = "test.mp3" source = pyglet.media.load(mp3) player = pyglet.media.Player() player.queue(source) player.play() pyglet.app.run()