How WAV to MP3 conversion works
WAV decode → normalized audio stream → MP3 encode
Reading WAV
WAV input may contain uncompressed PCM or another supported codec plus RIFF metadata.
Creating MP3
MP3 output is widely compatible and compact, using lossy audio with compatible ID3 metadata.