From: "Jay Savage" <[EMAIL PROTECTED]>
On Sun, Jul 6, 2008 at 4:37 AM, Octavian Rasnita <[EMAIL PROTECTED]> wrote:
Hi,

Does anyone know if there is a perl module that can be used for recording in
.wav format?
(One that can be used under both Linux and Windows, or at least under
Windows.)
Thank you.

Octavian


Recording what, exactly? An audio input device? A CD? System audio
being played through the sound card?

I need to be able to record from the microphone... something like what the Windows Sound Recorder does.

There are Perl drivers for OSS devices (Audio::OSS, Audio::DSP, etc.)

From the POD docs:
Audio::OSS is a pure Perl interface to the Open Sound System, as used on Linux, FreeBSD, and other Unix systems.

and also a number of modules that encode and recode audio (FFMPEG::*,

From the POD:
FFmpeg-Perl currently only supports the functionality of the ffmpeg and libavformat components of the FFmpeg-C suite. That is, functions exist for extracting metadata from media streams and transforming one media stream format to another, but no effort is (yet) made to port HTTP broadcasting or playback functionality
(So it can't be used for recording.)

Audio::MPEG,

From the POD:
I have only tested this on a Linux 2.4.x system so far, but I see no reason why it should not work on any Un*x variant. In fact, it may actually even work on a Windoze box (the underlying LAME and MAD libraries apparently compile somehow on them).

It seems that it was never tested under Windows...

Audio::ConvTools, etc.). Whether they will meet your
needs depends on whether your audio devices support open standards, or
whether there happens to be a module for your specific audio device.
Failing that, you can always your system()/Win32::API to capture the
output from a proprietary driver, or try to read the device directly
with IO::Socket, etc. Of course a CD can be read like any other file
system, and there are modules to handle that scenario, too.

Ok, thank you. With other words... there is no module that can do what I need unfortunately. :-(

I have tried Win32::SoundRec and it works, but it records the sound with much noise, while the Windows Sound Recorder records the sound very well.

Octavian


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to