Macro with New Approach to Implementing Timers

I noticed a thread in this forum about implementing a timer. I saw that it was using a Prompt for User Input action as its means of obtaining timer duration from the user. With Monterey's new voice dictation feature, I thought it would be much simpler to code and more fun to use if we wrote a KM macro that allowed the user to specify the duration by voice instead of the keyboard. So I'm posting my solution here. My solution includes two macros: the routine that fetches the user's voice and the routine that implements the timer. I think there's a few nifty techniques in here that show how to use KM in interesting ways. There is a link to the code at the bottom of this post, but here are some images with explanations...

This is the main routine which you could trigger with a hotkey, I imagine:

And here's the subroutine required to process the words "hours", "minutes" and "seconds":

And here's the MacOS Monterey Shortcut that you need:

Here's the KM code:

Timer Macros (v10.0.2)

Timer Macros.kmmacros (9.3 KB)

This is a cool macro that illustrates some neat techniques. I could have made this 100% better if I could have figured out how to use the "at" command, but Monterey makes it difficult to use that command.