Stirling engine with adjustable speed