{"id":141,"date":"2023-02-21T07:11:00","date_gmt":"2023-02-21T15:11:00","guid":{"rendered":"https:\/\/dejal.com\/blog\/?p=141"},"modified":"2023-02-21T07:11:12","modified_gmt":"2023-02-21T15:11:12","slug":"how-can-i-play-a-sound-during-a-break-in-time-out","status":"publish","type":"post","link":"https:\/\/dejal.com\/blog\/how-can-i-play-a-sound-during-a-break-in-time-out\/","title":{"rendered":"How can I play a sound during a break in Time Out?"},"content":{"rendered":"<body><p><\/p>\n<p>To play a sound or perform other actions before, during, or after a break, check out the <strong>Actions<\/strong> page of the break editor:<\/p>\n<p><img data-recalc-dims=\"1\" decoding=\"async\" title=\"Actions page\" src=\"https:\/\/i0.wp.com\/dejal.com\/blog\/wp-content\/uploads\/2022\/12\/Screenshot-2022-12-29-at-13.14.41.png?resize=587%2C339&#038;ssl=1\" alt=\"Actions page\" width=\"587\" height=\"339\" border=\"0\" loading=\"lazy\"><\/p>\n<p>Other actions include the ability to display a notification (with an optional sound), fade out the currently playing sound (useful at the end of the break), flash the screen, and speak some text with speech synthesis. Several scripts are provided, too.<\/p>\n<p>To add an action, simply click the <img data-recalc-dims=\"1\" decoding=\"async\" title=\"+\" src=\"https:\/\/i0.wp.com\/dejal.com\/blog\/wp-content\/uploads\/2022\/12\/Screenshot-2022-12-29-at-13.20.09.png?resize=35%2C22&#038;ssl=1\" alt=\"+\" width=\"35\" height=\"22\" border=\"0\" loading=\"lazy\">\u00a0button in the top-right corner of the window, to display a menu of available actions:<\/p>\n<p><img data-recalc-dims=\"1\" decoding=\"async\" title=\"Add action menu\" src=\"https:\/\/i0.wp.com\/dejal.com\/blog\/wp-content\/uploads\/2022\/12\/Screenshot-2022-12-29-at-13.14.56.png?resize=279%2C472&#038;ssl=1\" alt=\"Add action menu\" width=\"279\" height=\"472\" border=\"0\" loading=\"lazy\"><\/p>\n<p>(When you first click this button, the scripts won\u2019t be there, and there will just be \u201cMore\u2026\u201d item at the end; choose this to install the scripts.)<\/p>\n<p>The first bunch are the various actions, followed by scripts, which are like customizable actions. At the end of the menu are items to open the Scripts folder in the Finder, so you can edit or add scripts, and go to the <a href=\"https:\/\/dejal.com\/timeout\/extras\/\">Time Out Extras page<\/a> to download more scripts.<\/p>\n<p>Once you add an action, you\u2019ll see a header row with the name of the action and some other controls:<\/p>\n<p><img data-recalc-dims=\"1\" decoding=\"async\" title=\"Action header\" src=\"https:\/\/i0.wp.com\/dejal.com\/blog\/wp-content\/uploads\/2022\/12\/Screenshot-2022-12-29-at-13.16.24.png?resize=563%2C50&#038;ssl=1\" alt=\"Action header\" width=\"563\" height=\"50\" border=\"0\" loading=\"lazy\"><\/p>\n<p>You can use the interval picker and pop-up menu to indicate when to use the action. The interval picker enables you to offset from the action stage by a number of seconds, minutes or even hours (click on the units to change them). Instead of just being able to play a sound at the start and\/or end of a break, you can choose from many more times, including before due, after skipping, and more:<\/p>\n<p><img data-recalc-dims=\"1\" decoding=\"async\" title=\"Action when menu\" src=\"https:\/\/i0.wp.com\/dejal.com\/blog\/wp-content\/uploads\/2022\/12\/Screenshot-2022-12-29-at-13.15.31.png?resize=206%2C254&#038;ssl=1\" alt=\"Action when menu\" width=\"206\" height=\"254\" border=\"0\" loading=\"lazy\"><\/p>\n<p>After those controls is a  Preview (<img data-recalc-dims=\"1\" decoding=\"async\" title=\"Preview\" src=\"https:\/\/i0.wp.com\/dejal.com\/blog\/wp-content\/uploads\/2022\/12\/Screenshot-2022-12-29-at-13.15.48.png?resize=47%2C28&#038;ssl=1\" alt=\"Preview\" width=\"47\" height=\"28\" border=\"0\" loading=\"lazy\">) button, that will demonstrate the action. And a Remove (<img data-recalc-dims=\"1\" decoding=\"async\" title=\"Remove\" src=\"https:\/\/i0.wp.com\/dejal.com\/blog\/wp-content\/uploads\/2022\/12\/Screenshot-2022-12-29-at-13.15.55.png?resize=29%2C22&#038;ssl=1\" alt=\"Remove\" width=\"29\" height=\"22\" border=\"0\" loading=\"lazy\">) button to remove the action.<\/p>\n<p>Here is a brief video to demo the feature: adding a <strong>Play Sound<\/strong> action to play a long music track, and a <strong>Fadeout Sound<\/strong> action to make it fade out when the break successfully finishes. (You might instead want to have it fade out for any end, otherwise it\u2019d keep playing till done if you skip.)<\/p>\n<p><video controls=\"controls\" width=\"654\" height=\"426\"><source src=\"https:\/\/dejal.com\/timeout\/images\/videos\/sounds.mp4\" type=\"video\/mp4\">Your browser does not support the video tag.<\/video><\/p>\n<p>This is a powerful and flexible feature of the app, especially when using custom scripts.<\/p>\n<p><\/p>\n<\/body>","protected":false},"excerpt":{"rendered":"<p>To play a sound or perform other actions before, during, or after a break, check out the Actions page of the break editor: Other actions include the ability to display a notification (with an optional sound), fade out the currently playing sound (useful at the end of the break), flash the screen, and speak some [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[16,3],"tags":[],"class_list":["post-141","post","type-post","status-publish","format-standard","hentry","category-faq","category-time-out"],"jetpack_featured_media_url":"","jetpack-related-posts":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/dejal.com\/blog\/wp-json\/wp\/v2\/posts\/141","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dejal.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dejal.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dejal.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dejal.com\/blog\/wp-json\/wp\/v2\/comments?post=141"}],"version-history":[{"count":1,"href":"https:\/\/dejal.com\/blog\/wp-json\/wp\/v2\/posts\/141\/revisions"}],"predecessor-version":[{"id":142,"href":"https:\/\/dejal.com\/blog\/wp-json\/wp\/v2\/posts\/141\/revisions\/142"}],"wp:attachment":[{"href":"https:\/\/dejal.com\/blog\/wp-json\/wp\/v2\/media?parent=141"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dejal.com\/blog\/wp-json\/wp\/v2\/categories?post=141"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dejal.com\/blog\/wp-json\/wp\/v2\/tags?post=141"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}