Play a sound when a TiddlyTools alarm is activated?

I’m using the TiddlyTools Calendar and Alarms plugins which I find outstanding and a perfect complement to TiddlyWiki.

With regard to alarms, I wonder if it’s possible for a sound to be played, for example from a wav file, when an alarm pops up on the screen.

For information, I’m using Linux.

When you define your alarm, enter message text that contains an <audio src="..." autoplay/> HTML element.

The value of the src="..." parameter can be:

  • a direct reference to a publically-accessible URL, like this:
    <audio src="https://archive.org/download/Caruso_part1/Caruso-AveMaria.mp3" autoplay/>

  • a reference to an audio file that you put into a sub-folder relative to your TiddlyWiki file, like this:
    <audio src="audio/alarmsound.wav" autoplay/>

  • a reference to a tiddler in which the text field contains either a URL or a relative file reference, like this:
    <audio src={{AlarmSound}} autoplay/>

  • a reference to a tiddler in which the type field contains an audio MIME type (e.g., audio/mp3) and the _canonical_uri field contains either a URL or a relative file reference, like this:
    <audio src={{AlarmSound}} autoplay/>

2 Likes

Perfect! TiddlyWiki usually spoils us for choice. :grinning: