In this section, we'll work with sound. Most games usually use music to provide sound background. For a simple sound device, we can use sound buzzer devices. We can use a PC-mountable mini-speaker - PC Mount (12mm, 2.048kHz) from SparkFun, found at the following link: https://www.sparkfun.com/products/7950. You can see this in Figure 3-9, and you can also find some other sound buzzer models with low prices at AliExpress:
Figure 3-9: Mini Speaker - PC Mount
Next, we connect the sound buzzer to the ESP32 board.