Hello expertise and welcome to the Java Programming Forums
Converting a wav file is actually very complicated. It requires complicated algorithms to remove frequencies and compress the file.
I remember having some code a few years ago that I was using when I was working on an audio application. I will see if I can find it...