In this paper we propose a technique for automating the procedure for determining the parameters of spectral lines based on search of the initial approximation for the least-square method using spline function. Some results of numerical simulations and data of processing actual line of water vapor recorded with a dual-channel opto-acoustic (OA) laser spectrometer are also presented in the paper.