There are two main ways electronics can generate sound: As Dave said, some speakers use variable current to create a variable electromagnet which moves the cone and produces sound (of course, you need some voltage to induce the current). Another way is with ...