NAME

Audio::Tagger - Perl module to handle audio metadata

VERSION

version 0.04

SYNOPSIS

Synopsis section

use feature 'say';

use Audio::Tagger qw(Any);

my $tagger = Any("/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");

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 it being based on the taglib library, it isn't and won't be a full Perl interface to such library.

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 only read tags but cannot modify them, Audio::FLAC::Header, Audio::APE, MP3::Info, and others support only a single audio or tag format, Audio::TagLib does not build, and many others.

SUBROUTINES

Any( $filename )

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

Flac( $filename )

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

MP3( $filename )

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

Ogg( $filename )

Create an Audio::Tagger::Ogg 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.