I have two Spathiphyllums I keep in my flat, more or less similar (about the same age, pot size is similar, general plant size also similar), except for the conditions I keep them: one is in my bedroom, next to a north-facing window that never receives direct sunlight, resting directly on top of an active radiator. The other is in my living room, next to a south-facing very big window: plenty of light, although actual direct sunlight is limited, far from radiators and in a generally good-tempered environment.
The second plant grows fantastically, but didn't produce any flowers yet. The first plant has a slower growth (due to the low light condition, I guess), but ever since I put it on top of the radiator it's blossoming like I've never see before (see pic below). The "ever since I put it there" is kind of key too: the plant used to be next to the window, but not on the radiator, and it never bloomed before.
I've read nurseries use a special hormone to stimulate spath blossoming, but does temperature also play a part? I read spathiphyllum blooms mostly in spring, but the blooming of the one in my room started in December, with very low daylight, could it be I "tricked" the plant into thinking it's spring by the warmth alone?