home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / dsp / 2880 < prev    next >
Encoding:
Internet Message Format  |  1992-12-31  |  2.1 KB

  1. Path: sparky!uunet!pipex!demon!cix.compulink.co.uk!rspence
  2. Newsgroups: comp.dsp
  3. From: rspence@cix.compulink.co.uk (Richard Spence)
  4. Subject: Format of .AU Sound files               
  5. Cc: rspence@cix.compulink.co.uk
  6. Reply-To: rspence@cix.compulink.co.uk
  7. Date: Thu, 31 Dec 1992 13:32:00 +0000
  8. Message-ID: <memo.834974@cix.compulink.co.uk>
  9. Sender: usenet@demon.co.uk
  10. Lines: 37
  11.  
  12. christos@kuhub.cc.ukans.edu () writes:
  13.  
  14. > Hello there,
  15.  
  16. > I am using the Public Domain program Sound Tools on the Sun station
  17. > to record speech. The speech samples are saved in a mu-law 8bits/sample
  18. > encoding rule with a standard ".au" header precceding the data. What I
  19. > would like to know is what the format of the speech samples is? In other
  20. > words, I am reading the bytes that correspond to 8-bit speech samples but I
  21. > don't know whether they are in signed binary format(2's complement) or
  22. > unsigned binary format or anyother format. I have tried both binary signed
  23. > (2' complement) and unsigned but it doesn't work. Does anybody know how the
  24. > samples are stored?
  25.  
  26. > I would appreciate any relevant response.
  27.  
  28. The most likely encoding will be a standard telecomms encoding at 64kbps or
  29. 8kHz audio. One second of information will be 8000 bytes, not 8kbytes.
  30.  
  31. The 'original' samples are 12 bits wide and a compression algorithm is
  32. applied to get down to 8 bits. The USA (and dependants) use the mu-law
  33. encoding scheme. We Europeans use an A-law scheme.
  34.  
  35. So much for background. If I remember correctly, the most significant bit is
  36. a sign bit, indicating positive (0) or negative (1) value. The remaining 7
  37. bits are the encoded amplitude of the sample. Manipulation will require you
  38. to decode the sample correctly, and I don't have the details of mu-law
  39. encoding to hand. But, I know where it is described. Try and get hold of the
  40. CCITT's G.7xx series recommendations which is one large volume. Try a
  41. technical library of a university. Alternatively, you could ask very nicely
  42. and I will try to mail the relevant pages when I'm over in the US in January.
  43.  
  44. Richard Spence
  45. rspence@cix.compulink.co.uk
  46. CompuServe: 100112,304
  47.  
  48. >>>MATRIX version  1.21e
  49.