The invention concerns a thermoelectric generator comprising a plurality of thermocouples formed by junctions (10) between wires (12, 14) made of semi-metals or semiconductors of type n and type p respectively, the materials of the wires (12, 14) being different and their cross-sectional surfaces being different in order to optimize the thermoelectric properties of each wire.