Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Convert from PCM to WAV. Is it Possible?

Tags:

ios7

xcode5

audio

I have an application for iPAD. This application records the voice of the microphone. The audio formats of the item must be PCM, MP3 and WAV files. The MP3 file I get it starting from the original raw file and then convert using LAME. Unfortunately I have not found any example that allows me to convert a PCM file to a WAV file. I just noticed that if I put the file extension to WAV format, starting from the raw application saves without problems, so I think that there is no type conversion from PCM WAV files. Correct?

PS: Sorry for my english ... I use Google Translate

like image 236
macuser Avatar asked Jan 15 '14 07:01

macuser


People also ask

Is PCM audio WAV?

PulsePulseIn physics, a pulse is a generic term describing a single disturbance that moves through a transmission medium. This medium may be vacuum (in the case of electromagnetic radiation) or matter, and may be indefinitely large or finite.https://en.wikipedia.org › wiki › Pulse_(physics)Pulse (physics) - Wikipedia Code Modulation(PCM) is a subclass of the Microsoft waveform (. WAV) file format. PCM is a technique for storing analog audio data in a digital format.

Does converting to WAV lose quality?

Converting WAV to MP3 gets your data compressed, with loss. Converting MP3 to WAV gets your data expanded, without loss (But the loss presumably already has taken place beforehand, so you gain no additional resolution.


1 Answers

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: enter image description here

(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).

like image 95
Florian Avatar answered Oct 16 '22 23:10

Florian