Newsgroups: comp.speech
Path: pavo.csi.cam.ac.uk!doc.ic.ac.uk!uknet!pipex!uunet!europa.eng.gtefsd.com!howland.reston.ans.net!sol.ctr.columbia.edu!news.kei.com!ub!galileo.cc.rochester.edu!rochester!cornell!hertz
From: hertz@cs.cornell.edu (Susan R Hertz)
Subject: Re: .wav .voc header inform
Message-ID: <1993Aug13.163501.20311@cs.cornell.edu>
Organization: Cornell Univ. CS Dept, Ithaca NY 14853
References: <CBo4pB.EMG@poly.edu>
Date: Fri, 13 Aug 1993 16:35:01 GMT
Lines: 37

skim@signal.poly.edu (Seung Pil Kim) writes:

>Can anybody give information on the file header for *.wav and *.voc
>files ? The pointers to such information will also be apprecisted.

>S.P. Kim

I got this from one of the Microsoft forums on CompuServe:

    /*\
    |*|----====< ".WAV" file format >====----
    |*|
    |*|     4 bytes 'RIFF'
    |*|     4 bytes <length>
    |*|     4 bytes 'WAVE'
    |*|     4 bytes 'fmt '
    |*|     4 bytes  <length>	    ; 10h - length of 'data' block
    |*|     2 bytes  01 	    ; format tag
    |*|     2 bytes  01 	    ; channels (1=mono, 2=stereo)
    |*|     4 bytes  xxxx	    ; samples per second
    |*|     4 bytes  xxxx	    ; bytes per second
    |*|     2 bytes  01 	    ; bytes per sample
    |*|     2 bytes  08 	    ; bits per channel
    |*|     4 bytes 'data'
    |*|     4 bytes <length>
    |*|       bytes <sample data>
    |*|
    |*| 	Note: the sample data must end on an even byte boundary.
    |*| 	      All numeric data fields are in the Intel format
    |*| 	      of low-high byte ordering.
    |*|
    \*/

Can't help you with the .voc format, though.

Timothy Weber

