Playing mp3 files with wxPython

Ignacio Vazquez-Abrams ignacio at openservices.net
Fri Sep 7 09:35:20 EDT 2001


On Fri, 7 Sep 2001 ibwonrr at yahoo.com wrote:

> On Fri, 07 Sep 2001 04:42:57 GMT, "Pete Shinners" <pete at shinners.org>
> wrote:
>
> I've tried pygame but get the following error when I call load() for
> an mp3 file:
>   File "<stdin>", line 1, in ?
> pygame.error:  Module format not recoginized
>
> pygame works fine for wav files, but another part of my application
> requires mp3.  As a work around, I would consider converting my mp3 to
> wav so it can be played, then discarding the wav.  However I don't
> know a python way to convert mp3 to wav.

Use .ogg files instead. They have the same features as MP3s, but (IMHO)
they're of better quality.

-- 
Ignacio Vazquez-Abrams  <ignacio at openservices.net>





More information about the Python-list mailing list