For this project, you'll need a Google Text to Speech API key as well as the Python library.
You'll also need a Raspberry Pi, as well as a push-button and two cables to connect it to the GPIO.
The source code is available at:
https://github.com/keiki-kode/Python-for-Kids-Introduction/tree/master/joke-machine