Piezo buzzers generate sound waves using the piezoelectric effect, instead of the electromagnet that is used in traditional speaker. Simply send them a square wave to generate a sound at the frequency you specify. Don’t forget to use a current-limiting resistor.