A black box is a flight recorder installed in an aircraft, primarily responsible for collecting various data during a flight. This data includes flight parameters such as altitude, speed, and heading, as well as cockpit audio which provides insights into the communications between the flight crew. Despite its name, the black box is typically painted bright orange to facilitate its recovery after an accident.