Miscellaneous code for text-to-speech systems