Skip to content
Mike Dixson edited this page Dec 7, 2018 · 1 revision

After a phone system upgrade we were unable to get the speaking clock within the office, which started off a conversation about how much it costs to call, presently 50p per call in the UK.

A little conversation and it seemed like it would be fairly easy to knock up a system that provided the same service. So with about 15 minutes I did 😀

Note this code doesn't deal with when seconds + 6 (offset to allow for the length of the sentence) = more that 59 seconds. This was essentially knocked up as a proof of concept. Please feel free to add, improve etc. Note this is not completely accurate, it's a quick effort with minimal time spent on it.

Things that it would be nice to circle back on this:

  • Calculate a way to make the entire sentence always take the same length, this has not been tested for a long time so I imagine there's some skew issues. -Handling the + seconds better.
Clone this wiki locally