In this paper we apply a nonlinear Hammerstein model for speech analysis and coding using frame-based parameter solving. This paper presents a method for calculating the adaptive frame-based coeffi- cients for a Hammerstein model by modifying the residual signal to the desired form. The method is such that the nonlinear and linear coefficients can be obtained without iterations. In experiments the residual information was reduced significantly by using proper nonlinearities and residual shaping in the preprocessing phase.