How fast the gas expands through an opening depends on the pressure ratio between entrance and exit, and for ordinary air the flow reaches the speed of sound at the narrowest part when the pressure ratio exceeds about a factor of two. The flow never becomes supersonic in the constriction itself, but after the constriction the flow can continue to accelerate to supersonic speeds, especially if the constriction is followed by an expanding nozzle (converging-diverging, or de Laval nozzle), although this is not strictly necessary. For example, one can observe shock diamonds in the air coming out of an ordinary plastic bottle filled with slightly compressed gas: https://www.youtube.com/watch?v=61tsXGUc6nU