gsf icon indicating copy to clipboard operation
gsf copied to clipboard

Wav files are distorted when format is MuLaw

Open Blackburn29 opened this issue 11 months ago • 0 comments

There appears to be an encoding issue with MuLaw. When playing back a generated tone, the audio is severely distorted. If the file is encoded in PCM then audio is fine.

Ex:

var waveFile = new WaveFile(SampleRate.Hz8000, BitsPerSample.Bits8, DataChannels.Mono, WaveFormat.MuLaw);
DTMF.Generate(waveFile, TouchTone.GetTouchTones("1234567890"), 0.25D);
...

Blackburn29 avatar Mar 27 '25 14:03 Blackburn29