Résumé : A quasi-deterministic single-photon source and method of generating single photons on demand are disclosed. The single-photon source includes photon pair generation for generating a heralding and heralded photon in a frequency-correlated photon pair, a single-photon spectrometer adapted to detect the heralding photon and to generate an output signal that is indicative of the frequency of the detected heralding photon, a pulse shaper arrangement for reshaping a broadband pulse, and an optical frequency conversion means for converting, upon irradiation with a reshaped pulse, a heralded photon into a single output photon with deterministic source frequency. The pulse shaper arrangement is configured to select, based on the spectrometer output signal, only frequency components of the broadband pulse that substantially coincide with the heralding photon frequency or with a constant detuning thereof.