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

Paul Davis paul at linuxaudiosystems.com
Mon Oct 24 15:11:42 EDT 2005


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.




More information about the Linux-audio-user mailing list