In devices used for the direct conversion of heat into electricity, or vice versa, known in the art as thermoelectric power generators, thermoelectric refrigerators and thermoelectric heat pumps, the efficiency of energy conversion and / or coefficient of performance have been considerably lower than those of conventional reciprocating or rotary, heat engines and / or vapor-compression systems, employing certain refrigerants. The energy conversion efficiency of power generating devices, for example, aside from the hot and cold junction temperatures, also depends on a parameter known in the art as the thermoelectric figure of merit Z=S2σ / k, where S is the thermoelectric power, σ is the electrical conductivity and k is the thermal conductivity, of the material that constitutes the p-type, and / or n-type, thermoelements, or branches, of the said devices. In order to achieve a considerable increase in the energy conversion efficiency, a thermoelectric figure of merit of the order of 10−2 K−1, or more, is needed. It is reasonably expected that such an order of magnitude, for the figure of merit, can be realized with a composition of matter, comprising magnesium, silicon, lead and barium, and optionally comprising one, or more, additional doping materials.