NAME

Audio::Tagger - Perl module to handle audio metadata

VERSION

version 0.02

SYNOPSIS

Synopsis section

use feature 'say';

use Audio::Tagger qw(File MP3);

my $tagger = File("/path/to/file.mp3");

# print the song title
say $tagger -> title;

# print the song artist
say $tagger -> artist;

# change and print the song album
say $tagger -> album("Awesome Album");

# save the modifications to disk
$tagger -> save or
    die("Cannot write to disk");

# strip all the tags from an mp3
my $stripper = MP3("/path/to/file.mp3");

$stripper -> strip or
    die("Cannot strip tags");
$stripper -> save or
    die("Cannot write to disk");

DESCRIPTION

Audio::Tagger is a module to read and write metadata from various types of different audio formats. It tries to be easy to use, but also quite flexible.

Despite Audio::Tagger is based on the taglib library, it isn't and won't be a full Perl interface to taglib.

Why another module for audio tags? There are some other modules that handle audio tags, but they are either incomplete or completely broken. For instance, Audio::Scan and Audio::File can read but cannot write, Audio::Metadata, Audio::APE, Mp3::Info, and others support only a single audio or tag format, Audio::TagLib does not even build, etc...

SUBROUTINES

File( $filename )

Create an Audio::Tagger::File object given a file name.

MP3( $filename )

Create an Audio::Tagger::MP3 object given a file name.

AUTHOR

Alessandro Ghedini <alexbio@cpan.org>

LICENSE AND COPYRIGHT

Copyright 2011 Alessandro Ghedini.

This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.

See http://dev.perl.org/licenses/ for more information.