1. Find a Mac-based server (a co-located Mac Mini will be fine)
2. Run `say -o output.wav $TEXT` to generate the voice
3. Compress the WAVE file with `lame` or the system builtin `afconvert` to get the MP3 file.
`say` command supports multiple languages and dialects, but you'll have to install the necessary voice engines in OS X 10.8. Man page for `say` can be found here http://pastebin.com/nWbvJAAX
The complete list of voices/languages supported so far:
* English (Australia): 2 voices
* English (India): 1 voice
* English (Ireland): 1 voice
* English (Scottish): 1 voice
* English (South Africa): 1 voice
* English (UK): 3 voices
* English (US - Female): 7 voices
* English (US - Male): 6 voices
* English (US - Novelty): 14 voices
* Arabic (Saudi Arabia): 1 voice
* Chinese (China): 1 voice
* Chinese (HK): 1 voice
* Chinese (Taiwan): 1 voice
* Czech: 1 voice
* Danish: 1 voice
* Dutch (Belgium): 1 voice
* Dutch (Netherlands): 2 voices
* Finnish: 1 voice
* French (Canada): 2 voices
* French (France): 4 voices
* German (Germany): 3 voices
* Greek: 2 voices
* Hindi: 1 voice
* Hungarian: 1 voice
* Indonesian: 1 voice
* Italian: 3 voices
* Japanese: 1 voice
* Korean: 2 voices
* Norwegian Bokmal: 1 voice
* Polish: 1 voice
* Portuguese (Brazil): 1 voice
* Portuguese (Portugal): 1 voice
* Romanian: 1 voice
* Russia: 1 voice
* Slovak: 1 voice
* Spanish (Mexico): 2 voices
* Spanish (Spain): 2 voices
* Swedish: 2 voices
* Thai: 1 voice
* Turkish: 1 voice