The invention discloses an intelligent total thoracic high-frequency oscillating sputum ejection machine and a sputum ejection method. The sputum ejection machine comprises a hose, a pressure sensor, a conducting wire, a power supply device, a box body and a cover plate, and is characterized by also comprising a pressure jacket, an air oscillator and a cough sensor, wherein the pressure jacket consists of a metal spring ring, a transverse membrane, a longitudinal membrane, skin and an adhesive buckle; and the metal spring ring is arranged at the bottom of the skin, the transverse membrane is arranged above the metal spring ring, the longitudinal membrane is arranged inside the skin, the upper end of the longitudinal membrane is connected with the upper edge of the inner wall of the skin, and the lower end of the longitudinal membrane is vertical to the transverse membrane and is reserved with a gap. In order to solve a new problem that fixed two-point type anterior chest wall pulse cannot beat the lateral surface and the back of the chest so as to cause poor sputum ejection effect for partial patients, the sputum ejection machine and the sputum ejection method adopt intelligent air supply modes of an electric motor and an air pressure compensator to periodically supply pulse airflow to the pressure jacket, can adjust the pulse airflow according to different press degrees required by patients, and are greatly convenient to treat the patients of different types.