WHAT I'M TRYING TO DO:
I want to record my voice, and while I'm recording, press number keys on my keyboard at specific times.
Then I want to play back the audio recording, and have code trigger at the specified times.
For example, I might record a story that includes me saying: "Then Sally turned the corner and she saw a large bear! It raised up!" At the appropriate time I would press "1" on the keyboard. (This uses Date.now to tell me that "1" was pressed at 6.364 seconds.)
When someone PLAYS my "story" I will play/stream my audio file and start checking the timestamps. At 6.364 seconds that first timestamp would trigger, and the "1" would tell me to play an animation where the bear raises up.
CONCERNS
Some of my stories could last 15 or more minutes and I'm concerned that there could be lag or other issues that make the audio get out of sync with the timestamps.
Is there a better approach that I should be using?