A versatile PC-based lung sound analyzer has been developed for short-term recording and analysis of respiratory sounds in research and clinical applications. The system consists of two sound sensors, a flow sensor, a filtering signal amplifier and a PC with a data acquisition card and software for measurement and analysis of the sounds. The analyses include phonopneumography, time expanded waveform analysis, spectral analysis with time averaged Fast Fourier Transform, frequency analysis in time domain (sonogram), and automatic detection and waveform analysis of crackles. Short-term repeatability of spectral parameters of tracheal and lung sounds was studied in 10 healthy subjects. The coefficients of variation (CoV) of the averaged quartile frequencies (F25, F50 and F75) of lung sounds during flow-controlled tidal breathing were 3.7, 4.0 and 8.9% in expiration and 2.7, 3.5 and 4.5% in inspiration, respectively. CoVs of the averaged F25, F50 and F75 of expiratory tracheal sounds were 6.9, 3.0 and 2.4%, and those of inspiratory tracheal sounds 6.3, 2.6 and 3.3%, respectively. Examples of lung sound analysis of samples containing adventitious sounds such as crackles and wheezes are presented. The results indicate that the median frequency has the best repeatability of quartile frequencies of breath sounds and they suggest that the variations of those parameters are low enough for diagnostic purposes. The results also suggest that the analyzer can be a useful new tool for pulmonary research in the fields of physiological and clinical short-term studies of respiratory sounds.