Sound is produced in a flute because of vibration of the air column.
The flutist blows through the mouth hole and the stream of air that makes contact with the edge is cyclically directed outward and inward. This cyclically vibrating air stream generates sound and excites cyclic vibrations of the air column inside the flute’s cylindrical tube.