使用Python播放MP3文件 [英] Playing MP3 files with Python

查看:1158
本文介绍了使用Python播放MP3文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试编写自己的媒体播放器(例如Foobar),但是在跟踪可以播放MP3的Python库时遇到了麻烦.我知道Pymedia会执行mp3,但它看起来已经过时了-最新的安装程序适用于Python 2.4版,而我使用的是2.6版.我从来没有在Pygame上取得过太大的成功,而且Pyglet看起来在文档方面似乎没有太多.还有其他选择吗?

I'm trying to write my own media player (like Foobar), and I'm having trouble tracking down a Python library that'll play MP3s. I know Pymedia does mp3s, but it looks outdated - the latest installer is for Python version 2.4, and I'm using 2.6. I've never had much success with Pygame, and Pyglet doesn't look like it has too much in the way of documentation. Are there any other alternatives?

推荐答案

http://pyglet.org/,您还尝试过 http://code.google.com/p/mp3play/?也可以从PyPi( http://pypi.python.org/pypi/mp3play/)但是,我认为mp3play目前仅是Win32.

There is http://pyglet.org/ and also have you tried http://code.google.com/p/mp3play/? It's also available from PyPi (http://pypi.python.org/pypi/mp3play/) However, I think mp3play is Win32 only for now.

查看更新,在最近几个月内有提交.

Looking at the updates, there were commits within last couple of months.

这篇关于使用Python播放MP3文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆