An electrical generator that converts reciprocating linear motion directly into electrical energy without using a rotary crankshaft. It is vital for maximizing the mechanical efficiency and reliability of Stirling engines and thermoacoustic waste-heat recovery systems.