16 bit PCM to wav conversion

M

michael rouch

i am trying to convert a raw, uncompressed 16 bit PCM cut sampled at
8000 samples/sec converted to a wav file. i was under the impression
that all that was needed was to concat the cut onto a 44 byte wav file
header with the correct parameters set, but when i put in all the
parameters all i get is noise.

when i set the samples/sec to 16000 and # bits to 8 in the wav header i
get an ok cut, but there is a ton of noise compared with the original.
(i used the same header sox gives in the conversion). am i missing some
magical incantation?

any help would be appreciated.

-mike
 
R

Roedy Green

i am trying to convert a raw, uncompressed 16 bit PCM cut sampled at
8000 samples/sec converted to a wav file. i was under the impression
that all that was needed was to concat the cut onto a 44 byte wav file
header with the correct parameters set, but when i put in all the
parameters all i get is noise.

see http://mindprod.com/jgloss/sound.html

There is sample code to create a sound file on the fly.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,768
Messages
2,569,575
Members
45,054
Latest member
LucyCarper

Latest Threads

Top