1. A method comprising: determining whether a frame conveyed to a decoder for speech synthesis is a bad frame, wherein the bad frame comprises spectral parameters that are corrupted or lost; and providing a substitution for the spectral parameters of the bad frame based on a combination of an adaptive mean of the spectral parameters of a predetermined number of the previously and most recently received good frames and a constant or long-term average of spectral parameters.