Audio::Extract::PCM::Backend::SoX - sox backend for audio extraction
See "pcm" in Audio::Extract::PCM::Backend.
Note that this backend does not support read, i.e. it only supports the pcm method, which will read all pcm data at once.
read
pcm
This will return the SoX version as a version object. The result will be cached, i.e. if you install a new sox, this module will not recognize it until it is reloaded or the application using it is restarted.
If no sox program is in the path or sox -h outputs strange things, undef will be returned. In the latter case, a warning will be issued.
sox -h
undef
Currently, the only internal use is to find out whether SoX is above version 13.0.0, because they renamed the "-b"/"-w"/"-l"/"-d" flags to "-1"/"-2"/"-4"/"-8" by then. Note that the old flags were still recognized (though deprecated) until SoX 14.1.0.
"-b"/"-w"/"-l"/"-d"
"-1"/"-2"/"-4"/"-8"
Abstract interface to "get_sox_version".
http://sox.sourceforge.net/ - SoX homepage
To install Audio::Extract::PCM, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Audio::Extract::PCM
CPAN shell
perl -MCPAN -e shell install Audio::Extract::PCM
For more information on module installation, please visit the detailed CPAN module installation guide.