Hi. I'm working on a relatively rudimentary project which requires using a text-to-speech engine to read the current time. PHP will allow me to output the current time in many ways. However, I need to output the time as words. For example, 13:00 should output as "one o'clock pm" and so forth. Another example, 01:23 should output as "one twenty three am".
I've searched for some scripts, and attempted to use my terribly amateurish PHP skills to accomplish this, but so far I am unable to complete the task.
Does anyone know of an existing script, written in PHP, that can do this? All we're looking to do is read the system time, apply an offset for time zone, then take the resulting time and output as words. I can give any clarification needed.
Thank you!