WMA(3pm)
π WMA β the Perl module, bestie edition β¨
okay so first things first: this is Audio::WMA, and it lives in the Perl world as a 3pm page (that's a module page, not a command, iykyk). It's your little key to the metadata locked inside WMA/ASF files. Let's get into it π
β¨ NAME β¨
Audio::WMA β a Perl extension for reading WMA/ASF Metadata. literally what it says on the tin, no cap π«Ά
πΈ SYNOPSIS πΈ
here's the whole vibe, copy-paste ready:
use Audio::WMA;
my $wma = Audio::WMA->new($file);
my $info = $wma->info();
foreach (keys %$info) {
print "$_: $info->{$_}\n";
}
my $tags = $wma->tags();
foreach (keys %$tags) {
print "$_: $tags->{$_}\n";
}
likeβ¦ look at her. iconic. π
π¦ DESCRIPTION π¦
So this module implements access to metadata contained in WMA files. That's the whole assignment. You point it at a file, it gives you the tea that's hiding inside. π
π METHODS π
new( $file )β Create a newAudio::WMAinstance from the data in$file. this is the moment she becomes the main character β¨info( )β Get the audio data information in the form of a hash ref. yes bestie, a hash ref. keys and values, all yours πtags( )β Get the metadata / tag information in the form of a hash ref. the juicy stuff, in a hash ref πstream( )β Get the current ASF stream. πparseObject( $asf )β Parse a standalone ASF object. one object, on its own, parsed. periodt.setDebug( 0 | 1 )β Toggle debugging. flip it to0or1, that's the whole deal π₯setConvertTagsToUTF8( 0 | 1 )β Toggle Encoding metadata tags as UTF-8
Toggle debugging.
ok so real talk, the original page has that "Toggle debugging." line sitting under this one too, and I'm not gonna lie to you and delete it β so here it is, exactly where it lives π
β SEE ALSO β
Audio::FLAC::Header<http://getid3.sf.net/>http://github.com/dsully/perl-audio/tree/master/Audio-WMA
go read those too, they're giving supporting cast π
π AUTHOR π
Dan Sully, <daniel | at | cpan.org> β yes the pipes are on purpose, that's how it's written, do not come for me π
π COPYRIGHT AND LICENSE π
Copyright 2003-2008 by Dan Sully & Logitech.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
and that's the whole page, bestie π«Ά this little gem came to you courtesy of perl v5.26.2, dated 2018-08-20, filed under WMA(3pm). slay, stay hydrated, go read some metadata β¨π
π
π¦ where this page comes from
- debian bookworm: libaudio-wma-perl 1.3-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libaudio-wma-perl 1.3-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu jammy: libaudio-wma-perl 1.3-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libaudio-wma-perl 1.3-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms