It is still a challenge to employ the acoustic method to investigate the molecular relaxation phenomena in excitable gases. Here we present an algorithm to capture the primary relaxation processes by only measuring the sound absorption and sound speed of two operating frequencies at a single pressure, without the necessity of detecting the gas density. This algorithm is developed from the fact that the frequency-dependent sound absorption curve due to a single-relaxation process can be reconstructed from the two values of the relaxation frequency and the maximum relaxational absorption, and they can be synthesized by the acoustic measurements at two frequencies. Moreover, by acquiring the high-frequency sound speed, those two synthesized values can be used to reconstruct the sound dispersion curve. The simulations demonstrate the validity of the proposed algorithm and its robustness against errors of acoustic measurements.