Thin-walled sacs or spaces which function as a part of the respiratory system in birds, fishes, insects, and mammals.