is a description of the WAV format. Following the header is simply an array of audio samples. The only things you have to keep in mind are, you have to get the byte-order correct, stereo/multichannel data is alternated/interleaved, and 8-bit files used unsigned integers.
You might have to search-around for a more detailed spec, and I'm not sure how 12-bit samples are handled, since 12-bits is 1.5 bytes. I know that 12-bit PCM audio is fairly common with some video formats, but I'm not sure if it's standard for WAV. I'm also not sure if 10kHz is a standard WAV sample rate.
If you want to handle the WAV file-formatting on the computer-side, I'm sure there are libraries for saving an array of audio samples in WAV format.