improved speech synthesis with templates.  fixed for mobile