Google voice translate tool

So, the other day i was writing some text in English and as usual i used google translation to check my grammar. I got some spear time so i stayed on translation page to play a little with it and i found out that google implemented nice voice feature. If you are translating to English, by pressing a button you can hear translated text.

That means google can transfer text into voice.

So maybe you are already thinking bout the same thing as i am. If google can do this with any text, and you can actually see that and use that for free on their page, there is definitely a way how to use it on other page / program.
Question is, who got so a lot of time to dig into google’s compressed javascript and get out just whats needed to do this.

So if anyone will find out, let me know, or maybe i ll have a look, who knows :)