Click here to get back home

Audio DSP Info needed

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Audio DSP Info needed Hemalatha N 10-18-2004
Posted by Hemalatha N on October 18, 2004, 11:00 pm
Please log in for more thread options
Hello All!

In Audio DSP module, man page tells that the sampling rate parameter
is to be given in bytes/second. This implies that if I want to record
at 16000samples/second with 16 bit encoding, then the value of the
rate parameter be 32000 bytes/second.

When I convert a raw file recorded with the value of the rate
parameter at 32000 bytes/second, and convert it to riff format with
the sampling frequency of 16000 samples/second, the file is dragged
in time and played. But, when I play it with

play -r 32000 wav1.wav

it plays properly.

Am I making any mistake? Or, does Audio::DSP take the value in
samples/second?

Can anyone tell me or should I contact someone else? Kindly let me
know.

Regards,

Hemalatha


Posted by Paul Gaborit on October 20, 2004, 4:02 pm
Please log in for more thread options

À (at) 18 Oct 2004 22:00:26 -0700,
hemalatha@lantana.tenet.res.in (Hemalatha N) écrivait (wrote):
> Am I making any mistake? Or, does Audio::DSP take the value in
> samples/second?

rate

Sampling rate in bytes per second. [...] Compact discs use a 44100 samples
per second sampling rate.

Default sample rate is 8192.

"Sampling rate in bytes per second" should be read "Sampling rate in samples
per second".

> Can anyone tell me or should I contact someone else? Kindly let me
> know.

AUTHOR

Seth David Johnson, seth@pdamusic.com

--
Paul Gaborit - <http://www.enstimac.fr/~gaborit/>
Perl en français - <http://www.enstimac.fr/Perl/>


Similar ThreadsPosted
"audio::wav" module April 13, 2008, 8:35 am
Audio::Data tarball seems incomplete January 3, 2005, 4:06 pm
FreeDB lookup error with Audio::CD June 23, 2006, 8:58 am
Audio DSP Usage in primitive sound cards October 18, 2004, 4:55 am
Single API to read and edit MP3 and WMA audio files April 29, 2005, 6:39 am
MP4::Info 1.00 released to CPAN August 22, 2004, 12:45 am
Trying to compile MP3::Info gives errors December 12, 2005, 11:17 am
ANN: Win32-Fonts-Info V0.01 June 27, 2006, 5:27 am
Module to retrieve general TTF font info May 31, 2005, 5:16 am
Module to return Local Policy Info July 13, 2008, 1:50 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap