A speaker is a device that converts electrical signals into sound, mainly composed of components such as a diaphragm, magnetic ring, and conductive coil. An electrical signal generates a magnetic field in a conductive coil, which causes the diaphragm to move and produce sound.