One embodiment of the present invention provides a system for generating
speech output from a text string. During operation, the system first
receives the text string and then examines the text string to locate one
or more substrings within the text string that are found in a speech
library. Next, the system looks up speech files associated with the one
or more substrings in the speech library. The system then concatenates
these speech files to produce a speech output for a user.