Audio::C4Stream::Wav - Perl extension for open and stream WAV files.
use Audio::C4Stream::Wav; my $audio = new Audio::C4Stream::Wav( filename => $file, leftTrimLen => 5,5, #in seconds rightTrimLen => 5,5, #seconds fadeInLen => 10, #seconds fadeOutLen => 10, #seconds leftBlankDetectLen => 0, #seconds (default 20) rightBlankDetectLen => 0, #seconds (default 20) blankDetectDb => 30, #decibels normalize => 0, #decibels );
The functions are :
getPngData
Get the sine wave graphic of the WAV data
getNextData
Get next data
getNextRawData
Get next source data
getOrigDataLen
Get the original data length
getOrigSec
Get the number of seconds of the original data
getDataLen
Get the length of the mixed data
getSec
Get the seconds of the data
See Audio::C4Stream::Mixer
Depends on IO::Scalar and C library GD https://bitbucket.org/pierrejoye/gd-libgd/overview
cloud4pc, adeamara@cloud4pc.com
Copyright (C) 2012 by cloud4pc
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.10.1 or, at your option, any later version of Perl 5 you may have available.
To install Audio::C4Stream::Wav, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Audio::C4Stream::Wav
CPAN shell
perl -MCPAN -e shell install Audio::C4Stream::Wav
For more information on module installation, please visit the detailed CPAN module installation guide.