A thermoacoustic engine is provided that uses acoustic energy to operate a piston in a double-acting action. The acoustic energy is amplified as a sound wave travels through the thermoacoustic engine. The amplified acoustic energy is extracted and converted into usable electrical energy.