Nasal cannulae are now aailable with a separate tube that can be attached to the sampling probe from a capnograph, thereby allowing for end-tidal CO2 monitoring.
And they timed the characters' breathing to their dialogue and at the same time let the characters' belly muscles and diaphragm tighten so it would really like they were letting out air while talking.