rochars / wavefile

Create, read and write wav files according to the specs. :star: :notes: :heart:
MIT License
230 stars 48 forks source link

distortion in sound from using wav.fromIMAADPCM() #11

Closed mangnet closed 5 years ago

mangnet commented 6 years ago

wav file from telephony system recorded using 8 bit mono, 8000Hz, u-law, The voicemail plays fine in VLC and other media player. When decode it using fromIMAADPCM(), static noise, choppy playback got introduced. When running command line for bit depth: the wav file returns 505

Any suggestions on fixing it?

rochars commented 5 years ago

Hi. You should use the fromMuLaw() method to decode u-law.

Cheers! Rafael