The present invention relates to a method and a system (100) for controlling breathing of a patient (101). A system for controlling breathing of a patient includes a respiratory conduit (120). The respiratory conduit is configured to be coupled to a patient interface device (102) and is further configured to be coupled to a pressurized air generating device (130). The respiratory conduit includes at least two air flow control devices, positioned between the patient interface device and the pressurized air generating device. The respiratory conduit includes at least two volumes, wherein one volume (111) is positioned between a first air flow control device (108, 131) and a second air flow control device (112, 133) and another volume (113) is positioned between a second air flow control device and a third air flow control device (114, 135).