Piezo buzzer
Piezo is short for piezoelectric. Certain materials produce an electric current when they are compressed. This is known as the piezoelectric effect. The effect also works in the opposite direction though, and that is what makes the buzzer work. An electric current is passed through a piezoelectric material which expands or contracts. If the current oscillates, a tone is produced.