Convert from PCM to WAV. Is it Possible?

╄→尐↘猪︶ㄣ 提交于 2019-12-03 14:49:40
Florian

WAV is some kind of a box. PCM is in the box. There are many container formats like MP4. MP4 can contain audio, video or both. It can also contain multiple video or audio streams. Or zip files. Zip files can contain text files. But zip files can also contain images, pdfs,... But you can't say "how can I convert a zip file to the text file inside the zip".

If you want to convert PCM data to a WAVE file you should not many problems because WAV files are quite simple files. Take a look at this:

(See also WAVE PCM soundfile format.)

You first need that header and after you can just append all your pcm data (see the data field).

Partho Biswas

Converting PCM to WAV isn't too hard. PCM and WAV both format contains raw PCM data, the only difference is their header(wav contains a header where pcm doesn't). So if you just add wav header then it will do the tricks. Just get the PCM data and add the wav header on top of the PCM data. To add wav header with PCM data, check this link.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!