I am building an application in pyQt4 and I want it to be able to play audio files. I was considering doing this through pyMedia as I could not get anywhere with the documentation, although the QAudio classes did initially look promising. It is important that the solution be cross-platform. Does anyone have any suggestions?
            Asked
            
        
        
            Active
            
        
            Viewed 2,084 times
        
    2 Answers
2
            As alex said, Phonon looks like your best bet because you can use it with Pyqt. You can find lots of examples of using phonon using google. This one, http://forum.kde.org/viewtopic.php?f=14&t=84275, for example is a command line tool to play audio using phonon. You might also want to take a look at the QSound class. QAudioInput looks interesting for adding support for a mike.
I hope this helps.
P.S.:
The riverbank site does mention the phonon module :)
I found a question on using Phonon + Pyqt - Play mp3 using Python, PyQt, and Phonon
1
            
            
        Use Phonon ( http://phonon.kde.org/ ). I used it from Java with success, so I expect it will work even better in Python/Linux.
This might also help:
        alex
        
- 5,213
 - 1
 - 24
 - 33