The engine behind the TTS is a JavaScript version of the eSpeak library which was originally written in C. All thanks goes to @kripken for porting eSpeak to JavaScript so it works in a browser!