Speakers and microphones work much the same way in using electromagnets, but they are reversed. Speakers take an electrical impulse that started out as sound and convert it back to sound, and microphones take sound waves and convert them to an electrical impulse.