Directly modulated semiconductor lasers are widely used, compact light sources in optical communications. Semiconductors can also be used to generate nonclassical light; in fact, CMOS-compatible silicon chips can be used to generate pairs of single photons at room temperature. Unlike the classical laser, the photon-pair source requires control over a two-dimensional joint spectral intensity (JSI) and it is not possible to process the photons separately, as this could destroy the entanglement. Here we design a photon-pair source, consisting of planar lightwave components fabricated using CMOS-compatible lithography in silicon, which has the capability to vary the JSI. By controlling either the optical pump wavelength, or the temperature of the chip, we demonstrate the ability to select different JSIs, with a large variation in the Schmidt number. Such control can benefit high-dimensional communications where detector-timing constraints can be relaxed by realizing a large Schmidt number in a small frequency range.