When you operate one of these devices (by simply passing a current through it - connect it to a battery) the current itself dissipates some heat in the material, but that heat and some of the heat on the "cold" side get swept to the other side, the "hot" side. If you pinch one of the devices between your fingers and run it, one finger gets hot and the other cold. Materials with low thermal conductivity but good electrical conductivity have the highest figure of merit, and it turns out that the winners are made of bismuth and tellurium, especially. (Silicon has excellent thermal conductivity - no good here, it short-circuits the temperature difference.)
Incidentally, if you hook up the battery backwards, it simply reverses the cold and hot sides, with equal efficiency. And if you actively heat one face and cool the other face, it's an (inefficient!) electrical generator - in this case, the heat is being forced to flow, and the charge carriers are what get swept along for the ride.
Thanks... Excellent... First thing that crossed my mind..
Thermocouple.