An air horn is filled with highly compressed gas and when it is released, it cools down the air horn. The same happens with fire extinguishers filled with liquid carbon dioxide. When it is released, the rapid expansion cools down some of the gas to deposit to form powdery dry ice.