Speech synthesis has been around since roughly the middle of the 20th century. Once upon a time, it took remarkably advanced hardware just to even choke out a few words. But as [atomic14] shows ...
TinyML is an incredibly powerful piece of software, and you can easily train your own model and deploy it on an ESP32.