POE::Component::Enc::Mp3 1.2 review

Download
by rbytes.net on

POE::Component::Enc::Mp3 is a mp3 encoder wrapper. SYNOPSIS use POE qw(Component::Enc::Mp3); $mp3 = POE::Component::Enc::Mp3

License: Perl Artistic License
File size: 3K
Developer: Erick Calder
0 stars award from rbytes.net

POE::Component::Enc::Mp3 is a mp3 encoder wrapper.

SYNOPSIS

use POE qw(Component::Enc::Mp3);

$mp3 = POE::Component::Enc::Mp3->new($bitrate => 160);

$mp3->enc("/tmp/tst.wav");

POE::Kernel->run();

This POE component encodes raw audio files into mp3 format. It is merely a wrapper for the notlame program.

METHODS

The module provides an object oriented interface as follows:

new

Used to initialise the system and create a module instance. The following parameters are available:

alias

Indicates the name of a session to which module callbacks are posted. Default: main.

bitrate

Should be self-evident. If left unspecified, defaults to 160.

enc < file-name > [del-orig]

Encodes the given file, naming it with a .mp3 extension. An optional true value for the second parameter indicates that the original file should be deleted.

e.g. $mp3->enc("/tmp/tst.wav");

Requirements:
Perl

POE::Component::Enc::Mp3 1.2 keywords