Programming Language Used in Creating Speaking Robot Voice

Hi guys,
I want to know more about speaking robot voice. What is the programming language used on the creation of robot speaking devices. I am very interested on the history and the beginning of robots and also include the one who invented the first one.
Expecting some help, thank you.
