Although this is a good script, the problem is that Google now only accepts a limited number of characters. Even if you use their official API. One thing that you can do is to only post a certain number of characters and then stitch the MP3 files together.
A solution which I did which works is to use SAPI. You can see a demonstration at http://www.texttospeechfree.net