Newsgroups: comp.speech
Path: lyra.csx.cam.ac.uk!warwick!pipex!howland.reston.ans.net!darwin.sura.net!ra!whitefang.itd.nrl.navy.mil!user
From: macker@itd.nrl.navy.mil (Joseph P. Macker)
Subject: Re: Convert spark10 sound files to spark2, need help!
Message-ID: <macker-060494123501@whitefang.itd.nrl.navy.mil>
Followup-To: comp.speech
Sender: usenet@ra.nrl.navy.mil
Organization: US Naval research Lab
References: <Cnu8uI.ApL@ecf.toronto.edu>
Date: Wed, 6 Apr 1994 17:35:01 GMT
Lines: 30

In article <Cnu8uI.ApL@ecf.toronto.edu>, liuca@ecf.toronto.edu (LIU  CHEUNG
WAH STEPHEN) wrote:

> 	I downloaded the lpc-10 package from the ftp site specified in faq. 
> Inside the package, there are some samples of sound files(with extension .spd).
> However  the files are processed originally in a SPARC10 station, and I only 
> get access to a SPARC2 station, therefore, the sound files just appear to be 
> a bunch of noise.
> 	My question is, how do I write some C program using the sound
> utilities existed in SPARC2 to convert those file into something that
> can be played back in a SPARC2 station?
> 	I have tried using the function audio_s2u (since the README file
> in the package said that the sound files in are 16-bit linear format), but
> I still get a bunch of noise.
> 	Thanks.

audio_s2u is the way to do it since you want to convert 16-bits PCM linear
to 8-bit u-law.  Is it possible the binary xxx.spd file was corrupted
during ftp transfer or unpacking?  I am only guessing that this might be
where the problem lies.  I assume you also know about the raw2audio routine
which appends a sun audio header to the raw file.  This can be important
depending on the playback application you are trying to use.

Good Luck! 

-- 
Joseph P. Macker
Information Technology Division
Naval Research Laboratory
macker@itd.nrl.navy.mil
