mp3

alex23 wuwei23 at gmail.com
Thu Feb 28 01:07:49 CET 2013


On Feb 28, 7:58 am, fabriceS <fabrice.sinc... at wanadoo.fr> wrote:
> Is anybody know how to get the lenght (in seconds) of a mp3 file ?

Try eyeD3: https://pypi.python.org/pypi/eyeD3

    >>> import eyed3
    >>> mp3 = eyed3.load(r'pygame\examples\data\house_lo.mp3')
    >>> mp3.info.time_secs
    7



More information about the Python-list mailing list