We theoretically analyzed the photon quantum statistics properties of the output field from an optomechanical system driven by different pulsed lasers. Our results show that the probability of generating a single-photon state at the photon blockade region is greatly dependent on properties such as the shape, area, central frequency, length, and amplitude of the driving pulse. These results will give guidance to the design of the potential optimal optical pulse for generating a high-performance single-photon source.