Sample code for 30+ languages & platforms
Perl

IBM Text to Speech Examples for Chilkat2 Perl