How to Play Sound with Python

This link helped

http://stackoverflow.com/questions/307305/play-a-sound-with-python

I’m working on Windows, so winsound worked.  It was as simple as

#!/usr/bin/env python

import winsound

winsound.PlaySound("ex1.wav", winsound.SND_FILENAME)

Comments

No comments yet. Why don’t you start the discussion?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.