Photoacoustic spectroscopy (PAS) as a highly sensitive and selective trace gas detection technique has extremely broad application in many fields. However, the laser sources currently used in PAS limit the sensing performance. Compared to diode laser and quantum cascade laser, the solid-state laser has the merits of high optical power, excellent beam quality, and wide tuning range. Here we present a long-wave, high-power, wide-tunable, single-longitudinal-mode solid-state laser used as light source in a PAS sensor for trace gas detection. The self-built solid-state laser had an emission wavelength of ~2 μm with Tm:YAP crystal as the gain material, with an excellent wavelength and optical power stability as well as a high beam quality. The wide wavelength tuning range of 9.44 nm covers the absorption spectra of water and ammonia, with a maximum optical power of ~130 mW, allowing dual gas detection with a single laser source. The solid-state laser was used as light source in three different photoacoustic detection techniques: standard PAS with microphone, and external- and intra-cavity quartz-enhanced photoacoustic spectroscopy (QEPAS), proving that solid-state laser is an attractive excitation source in photoacoustic spectroscopy.