an alternating current is sent through a coil of wire attached to the base of a paper cone
coil surrounds one pole of a permanent magnet, and is surrounded by the other pole, so the current causes a force on the coil
when current reverses, the force acts in the opposite direction, which causes the cone to move in the opposite direction too
so variations in the current make the cone vibrate, which makes the air around the cone vibrate and creates the variations in pressure that cause a sound wave
the frequency of sound wave is the same as the frequency of the a.c, so by controlling the frequency of the a.c you can alter the sound wave produced