Amniotic: An ambient sound mixer for Home Assistant, for Sound Masking, Sleep Sounds, etc

Btw, it makes sense for me to share the dashboard anyway:

  - theme: Backend-selected
    path: amniotic
    icon: mdi:surround-sound
    badges: []
    cards:
      - type: entities
        entities:
          - entity: number.amniotic_master_volume
            name: Master Volume
          - entity: number.amniotic_master_volume_adjust_threshold
            name: Adjust Threshold
          - entity: button.amniotic_master_volume_up
            name: Up
          - entity: button.amniotic_master_volume_down
            name: Down
          - entity: select.amniotic_preset
            name: Preset
          - entity: text.amniotic_preset_data
            name: Preset Data
          - entity: text.amniotic_save_preset_as
            name: Save Preset As
          - entity: sensor.amniotic_overview
            name: Overview
          - entity: button.amniotic_disable_all_themes
            name: Disable All
          - entity: text.amniotic_delete_preset
            name: Delete Preset
      - type: grid
        square: false
        columns: 1
        cards:
          - type: entities
            entities:
              - entity: text.amniotic_create_new_theme
                name: Create New Theme
              - entity: select.amniotic_theme
                name: Theme
              - entity: select.amniotic_theme_device
                name: Theme Device
              - entity: switch.amniotic_theme_enabled
                name: Theme Enabled (Playing)
              - entity: number.amniotic_theme_volume
                name: Volume
              - entity: button.amniotic_theme_volume_up
                name: Up
              - entity: button.amniotic_theme_volume_down
                name: Down
              - entity: text.amniotic_download_youtube_link
                name: Download YouTube Link
              - entity: sensor.amniotic_download_status
                name: Downloader Status
            title: Current Theme
          - type: entities
            entities:
              - entity: sensor.amniotic_title
                name: Title
              - entity: sensor.amniotic_duration
                name: Duration
              - entity: sensor.amniotic_by
                name: By
              - entity: sensor.amniotic_album
                name: Album
              - entity: sensor.amniotic_date
                name: Date
            title: Current Recording
      - type: grid
        square: false
        columns: 1
        cards:
          - type: entities
            entities:
              - entity: button.amniotic_restart
                name: Restart
              - entity: sensor.amniotic_current_version
                name: Current Version
              - entity: button.amniotic_update_check
                name: Check for Updates
              - entity: sensor.amniotic_update_status
                name: Update Status
              - entity: button.amniotic_update
                name: Update
            title: Updates

It’s right there, called “Radio Browser”:

It’s a good question however how one could add another RTSP stream to it. The Radio Browser integration depends on the radios package by frenck himself: GitHub - frenck/python-radios: Asynchronous Python client for the Radio Browser API However even in the source I don’t see a way to add a custom stream.

I was super excited when I came across this. I would love to be able to get some nice sound in my whole house using media_player entities. I saw a few people asking the same thing just above. Is there any plan to be able to cast out to external players like this? :pray:

Thanks for your enthusiasm!

So the good news is, yes, since that’s where all the interest is, and it will be easier to implement than I’d thought, that’s the first thing on “the list” to tackle next.

The bad news a) it’s still quite a major rewrite and b) I’m now quite busy with some unexpected life stuff.

So I can’t give a firm time on when/if this will happen.

1 Like

Incidentally, I should add that on the off chance someone wants to sketch out an approach for how this might be implemented, I’d be very happy to have a Pull Request!

Does this come with sounds? I’m hoping to use this to make own white noise for bathroom privacy. Anyone have suggestions on how to accomplish this?

It doesn’t ship with any. But I also wanted this so set it up manually:

So there’s a theme for each white noise channel, and you can mix theme together as you would any other themes, and save your mix as a Preset.

Possible ways to get the channel audio files:

  • Download them from MyNoise (involves paying a small free to download).
  • Create them yourself with something like Audacity and a Band Pass filter.

Ideally, Amniotic would be able to generate this sort of stuff. But that won’t happen for a while.

Exciting project. I was hoping to automate sound masking with white noise in my bedroom, since from 6am on it’s getting very noisy here. Unfortunately all speakers are media_players for me, but maybe there’ll be an update one day :slightly_smiling_face:. Thanks for your efforts! :pray:

1 Like

Does this integration allow you to mix sounds to cast to google home speakers? I’m currently using static mp3 files casted to my google home speakers as background noise for bathroom privacy and I’m wondering if this would allow me to use multiple audio files the same way.

Mixing yes, but casting no. Casting to external players is the main requested feature. See discussion above.

Interested in playing with this (Especially once casting becomes available). However I tried installing via Addon and received the following error. Is this a known issue, or something I messed up? I can open a Github issue if preferred.

Failed to install add-on

The command ‘/bin/ash -o pipefail -c pip install amniotic==${BUILD_VERSION}’ returned a non-zero code: 1

Not a known thing. A GitHub Issue would be good, along with any context (pip error message text, etc.).

Nvm. I was able to reproduce and it’s fixed in the latest release. Could you try again?

Looks like that got it, thanks for the quick turnaround!

1 Like

This all looks fantastic and the YouTube download functionality is nicely done.

  • 1 on the media_player integration as would be lovely to send this to my Sonos speakers.
5 Likes

I love the concept of this add-on, and I hope it gets support for casting to media_player entities!

1 Like

Just want to add my hope of media player support! We use Sonos for pretty much everything, and it would be so awesome to send this to individual speakers

1 Like

+1 for being able to send this to a media player. I’m looking to use HA to create a white noise machine for our daughter as the one we have is not working, so started looking into how to do this through home assistant. Would love to see that feature added!

1 Like

I just stumbled on this, and it’s exactly what I need! Thank you so much for this super excited to try it.

I started with using white noise skill on Alexa, but what’s annoying is it wants you to pay a monthly subscription for premium, the free gives you annoying ads. I tried everything to play local files onto Alexa as I don’t want to pay forever to listed to 1 track, this monthly subscription stuff is really going to far.

Eventually what worked for me was to use an old home entertainment system and place speakers in each bedroom running cables through the roof. Using a multi channel relay module to ‘turn off’ speakers I don’t want to play audio through. Casting just hasn’t been good enough/not enough support, and not very reliable in my experience, also Sonos is very expensive in my country.

Ps if you like white noise, try brown noise!

Check YouTube for super deep brown noise, you won’t regret it, it’s like white noise without the harsh treble, I also use it with my noise cancelling ear pods when I’m overwhelmed by too much noise. Very much understand the author of this integration,

1 Like

Just discovered this after trying to use the normal “media player: play media” action to play a local file on loop and finding it surprisingly difficult! Would love to use this to stream to my HomePods without being at the mercy of my internet connection!