Normalizing Sounds – Java Multimedia

Before normalizing sounds, lets have a look at following factors

  • Overall shape of the sound waveform is dependent on many samples
  • If we multiply all the samples by the same multiplier, we only effect our sense of volume (intensity), not the sound itself

Making sound as louder as possible is known as normalizing sounds.  Though it is a hard job but possible. Here are the steps involved normalizing sound.

  • Find the largest sample in the sound
  • Maximum positive value allowed is 32767
  • Multiply all the samples by same multiplier
  • Find the multiplier by computing (multiplier = 32,767/largest)
  • Multiply all the sample by the multiplier

Check out the code given below :

Check out the video and see the sound wave generated.

No Responses