An electrical current activates a voice-coil (a solenoid or coil of wire that gives the speaker its voice) that acts as an electromagnet which is wrapped around a permanent magnet.
A solenoid or coil wrapped around iron or certain other metals can form a(n) electromagnet.