close
close

Assign Background Sounds to iPhone Apps to Set the Mood « iOS & iPhone :: Gadget Hacks

Play background sounds on your iPhone to help you focus, calm down, or fall asleep, and have your own personal sound machine wherever you are. Even better, there’s a way to set each app to automatically play one of Apple’s six ambient soundscapes. The assigned sound will play when you open the app and stop when you exit or switch to another app.

iOS 15 and iOS 16 include “Per App Settings”, but there is no background sound. Instead, you should create automations with shortcuts. There are several ways to do this. None of them are perfect solutions, so they are like “hacks” to use until something better comes along.

Step 1: Create a New Automation

First, open the shortcut,[自動化]Tap the tab so that the blue[パーソナル オートメーションの作成]Click the button.If you already have one or more saved automations, tap the plus (+) icon in the upper right to[個人用自動化の作成]Look for the button.

Step 2: Choose an app for sound

Select “Apps” from the list and tap “Select” to highlight the app in question. No need to create automation for each app itself. Instead, create one for each background sound and volume pair, so first select all the apps you want for the sound and volume level you want to set. You can edit these later to add apps, remove apps, change volume levels, and more.

After checking the app,[完了]Click.

Step 3: Choose the Right Shortcuts

As mentioned earlier, there are multiple ways to create a shortcut that plays a background sound when you open your app and stops it when you exit. I’ll show two options below using ‘automation’ and one option using regular shortcuts, but if you know a better way please let me know.

note:[バックグラウンド サウンド]When setting the , you have six choices:

  • balanced noise
  • bright noise
  • dark noise
  • ocean
  • rain
  • stream

To save you time, all options below include shortcut links that you can add to your shortcut library. That way you don’t have to go through all the steps. For automation, simply add a “run shortcut” action and select the downloaded shortcut instead of any other action.

Option 1: Switch background sounds

The easiest way is to toggle the “background sounds” on and off each time you open or close the app of your choice. As long as you’re not already playing background sounds, this is a great feature. In that case, opening the app turns the sound off and closing it turns it on. To avoid that, try option 2 below.

Instead of building an entire automation, you can install the Toggle Background Sound shortcut to choose the sound and volume level during setup. next,[ショートカットを実行]Add action and instead of other action[バックグラウンド サウンドの切り替え]Select a shortcut (steps 3-11 below).

  1. [開いている]When[閉じている]select both. new animation window.
  2. Tap “Next”.
  3. Added “Background sound settings” action window.
  4. Tap “Turn” on that action and select “Toggle” instead.
  5. Add another action “Change Background Sound”.
  6. Tap if you want the current background sound for that action and select a different sound.
  7. Add another action “Set background sound volume”. (This is optional.)
  8. Tap the current percentage of “Volume” for that action and select the desired volume level.
  9. Add another action “Set background sound volume”. (This is optional.)
  10. Tap “Volume” and change it to “Volume when playing media”.
  11. Tap on the current percentage for that and select the desired volume level.
  12. Click “Next” on the upper right.
  13. Turn off “Ask before running” and “Notify when running”.
  14. Press “Done” to save.

Option 2: Turn background sounds on or off

This method requires two separate automations. One to trigger the background sound when the app is opened and another to turn off the background sound when the app is closed. This is by far the best option on this list, but it takes longer to set up than option 1.

Instead of building an entire “Is Opened” automation, you can install the Turn On Background Sound shortcut to choose the sound and volume level during setup. next,[ショートカットを実行]Add action and instead of other action[バックグラウンド サウンドの切り替え]Select a shortcut (steps 3-11 below).

  1. Select “Opened” new animation window.
  2. Tap “Next”.
  3. Added “Background sound settings” action window.
  4. Make sure the action defaults to “Turn Background Sounds On”.
  5. Add another action “Change Background Sound”.
  6. Tap if you want the current background sound for that action and select a different sound.
  7. Add another action “Set background sound volume”. (This is optional.)
  8. Tap the current percentage of “Volume” for that action and select the desired volume level.
  9. Add another action “Set background sound volume”. (This is optional.)
  10. Tap “Volume” and change it to “Volume when playing media”.
  11. Tap on the current percentage for that and select the desired volume level.
  12. Click “Next” on the upper right.
  13. Turn off “Ask before running” and “Notify when running”.
  14. Press “Done” to save.

Automating turning off “background sounds” is easier. If you don’t mind turning off “background sounds” manually all the time, you can skip these “closed” steps.

Instead of building an entire “Is Closed” automation, you can install the Turn Off Background Sound shortcut. next,[ショートカットを実行]Add action and instead of other action[バックグラウンド サウンドの切り替え]Select a shortcut (steps 3-4 below).

  1. to select “Closed” new animation window.
  2. Tap “Next”.
  3. Added “Background sound settings” action window.
  4. Tap “On” to switch to “Off” and you will see “Turn off background sounds”.
  5. Click “Next” on the upper right.
  6. Turn off “Ask before running” and “Notify when running”.
  7. Press “Done” to save.

Option 3: Create a home screen shortcut

This option turns on only “background sounds” with the desired sound and volume level each time you open the shortcut on the home screen or via Siri.

It has multiple drawbacks. First, the sound continues to play even when I quit the app. To fix this, you need to set the automation to ‘off’ as shown in option 2 above. Next, you need to create shortcuts for all apps that link to background sounds. Third, it only works on the home screen or via Siri.

Instead of building an entire automation, you can install the Background Sound Bookmark shortcut and then select apps, sounds, and volume levels during setup. next,[ショートカットを実行]Add action and instead of other action[バックグラウンド サウンドの切り替え]Select a shortcut (steps 5-15 below).

  1. Ignore steps 1-3 above and open the Shortcuts app[マイ ショートカット]Go to.
  2. Start a new shortcut.
  3. Give the app you want to link to a name.
  4. Add custom app icons as needed. (This is optional.)
  5. Add an “Open App” action.
  6. Tap “Apps” in that action and select the app in question.
  7. Added “Background sound settings”.
  8. Make sure the action defaults to “Turn Background Sounds On”.
  9. Add another action “Change Background Sound”.
  10. Tap if you want the current background sound for that action and select a different sound.
  11. Add another action “Set background sound volume”. (This is optional.)
  12. Tap the current percentage of “Volume” for that action and select the desired volume level.
  13. Add another action “Set background sound volume”. (This is optional.)
  14. Tap “Volume” and change it to “Volume when playing media”.
  15. Tap on the current percentage for that and select the desired volume level.
  16. Press the settings button on the top right (iOS 15) or the information (i) button on the bottom (iOS 16), then[ホーム画面に追加],[追加]Click (If you didn’t add a custom app icon before, but you want it, you can add it now.)
  17. Press Done, then press the X button in the upper right.

More advanced automation can be developed using apps like ToolBox Pro, but ToolBox Pro’s “Is audio playing?” action cannot distinguish between media and background sounds.

In a perfect world, there should be an “Is Background Sounds Playing” or “Detect Background Sounds” action in Apple or Toolbox Pro. This allows you to add an “if” statement at the beginning of option 1 above to change the background sound when the background sound is already playing. That way, “background sounds” won’t switch off if it’s already on. someday.

Keep your connection safe without monthly billsGet unlimited VPN subscriptions on all your devices with a one-time purchase from the new Gadget Hacks Shop, watch Hulu and Netflix without region restrictions, and enjoy unlimited speeds when browsing on public networks. You can strengthen your security.

Buy now (80% off) >

Other deals worth checking out:

Cover photo and screenshots by Justin Meyers/Gadget Hacks

Leave a Comment