alternator

/ˈɔltərˌneɪdər/

noun

A generator that produces an alternating current.

These oscillating sound waves in the traveling-wave engine drive the piston of a linear alternator that generates electricity.