All electrical and electronic devices that convert one type of energy into another type of energy are called transducers. Transducers typically convert electrical energy into mechanical or mechanical energy into electrical energy , such as microphones , loudspeakers , headphones, and so on.