A speaker is a type of transducer that converts electrical energy (the audio signal) into mechanical energy (the vibration of the speaker cone and diaphragm). This vibration transfers kinetic energy to the surrounding air, which results in sound waves that can be heard. The speed of vibration determines the frequency.