Re: [linux-audio-user] Digital audio files for hardware verification

From: Paul Davis <paul@email-addr-hidden>
Date: Mon Oct 24 2005 - 22:11:42 EEST

On Mon, 2005-10-24 at 11:22 -0700, Mark Knecht wrote:
> Hi,
> I'm being really lazy here and looking for some ideas on how to do
> a couple of things easily. I really don't want to spend much time on
> there. Thanks in advance.
>
> 1) Assume I have an existing wave file (mono or stereo) and want to
> convert it to text. I'd like each sample written in 8/16/24-bit hex to
> its own line in the file. Any easy way to do it?

sox will do this, if you use the .dat output file type.

        sox something.wav something.dat

not sure how to extract just 1 channel from a stereo file, i would
probably run the output through perl or something afterwards.

can't think of an easy way to do #2.
Received on Tue Oct 25 00:15:10 2005

This archive was generated by hypermail 2.1.8 : Tue Oct 25 2005 - 00:15:10 EEST