[python-win32] Play MP3s from Windows, Just Works
gundlach at gmail.com
Tue Aug 12 18:19:21 CEST 2008
Re: PyGame: I forgot that one in my list. Someone else tried it and
said sound quality for MP3 playback was terrible (didn't verify myself
Re: pyglet: thanks for the suggestion.
Re: licensing: good point, and so I think that the best solution is...
os.startfile('x.mp3'). Thank you, Brian, that's exactly what I needed
-- a way to have the system use the default audio player! I do need
to stop files, but including a tiny "silence.wav" with my project to
"start" seems to do the trick handily :)
Thank you all for your advice, and I hope this thread gets found by
the next guy who asks this question!
PS: The project is a speech-controlled robot that scans a remote music
collection, then plays bands/albums/songs on command ('musicbutler'
package on pypi). So, while os.startfile() has the side effect of
opening my default media player, I don't mind that as this app would
be on a machine without a monitor...
On Tue, Aug 12, 2008 at 11:45 AM, Brian Parma <execrable at gmail.com> wrote:
> If you don't need to control the playback with your program but just launch
> it (in WMP), try os.startfile instead of os.system.
> On Tue, Aug 12, 2008 at 7:45 AM, Vernon Cole <vernondcole at gmail.com> wrote:
>> As always, remember that mp3 is proprietary, and the owner has shown
>> willingness to be nasty about licensing it. Therefore, anything that is
>> "easy to install" is possibly illegal and/or will open you to a lawsuit. If
>> you are doing new work, better to use ogg.
>> On Tue, Aug 12, 2008 at 5:53 AM, Sidnei da Silva
>> <sidnei at enfoldsystems.com> wrote:
>>> On Tue, Aug 12, 2008 at 4:26 AM, Gerdus van Zyl <gerdusvanzyl at gmail.com>
>>> > Try pyglet [pyglet.org]. It wraps avbin for mp3,ogg reading and plays
>>> > using directsound, alsa, etc. Not sure if it could be made
>>> > easy_installable.
>>> Maybe PyGame? Same issue re: being easy_install-able though.
>>> Sidnei da Silva
>>> Enfold Systems http://enfoldsystems.com
>>> Fax +1 832 201 8856 Office +1 713 942 2377 Ext 214
>>> python-win32 mailing list
>>> python-win32 at python.org
>> python-win32 mailing list
>> python-win32 at python.org
> python-win32 mailing list
> python-win32 at python.org
More information about the python-win32