Scheduling the SL4A Script
Even though Tasker might not have all the tools required to code a complex parser or be able to make certain API-level calls, it has the facility to execute SL4A scripts. Using the Run Script action category,[44] you can easily hook up a timed execution of either the Python or Ruby implementation of the Talking Clock task.
If you don’t want to rely on Tasker to run the script at timed intervals, you could wrap either the Python or Ruby script in an infinite loop. The loop’s query condition would check the current time once a minute and see whether the current minute string value is 00, 15, 30, or 45. If it is, then execute the speech event. However, this ties up the resources required to run the script, and SL4A ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access