The odd one out is Magnet.
Here's why:
A loudspeaker is an electronic device that converts electrical signals into sound.
A microphone is an electronic device that converts sound into electrical signals.
An electric motor is an electronic device that converts electrical energy into mechanical energy to produce motion.
However, a magnet is not an electronic device; it is a material that produces a magnetic field. While magnets are often used in electronic devices like loudspeakers and motors, they themselves do not perform electrical functions but rather provide magnetic properties.