A filter controller processes a decoded speech (DS) signal. The DS signal
has a spectral envelope including a first plurality of formant peaks
having different respective amplitudes. The controller produces, from the
DS signal, a spectrally-flattened DS signal that is a time-domain signal.
The spectrally-flattened time-domain DS signal has a spectral envelope
including a second plurality of formant peaks. Each of the second
plurality of formant peaks approximately coincides in frequency with a
respective one of the first plurality of formant peaks. Also, the second
plurality of formant peaks have approximately equal respective
amplitudes. Next, the controller derives, from the spectrally-flattened
time-domain DS signal, a set of filter coefficients representative of a
filter response that is to be used to filter the DS signal.