Skip to content
forked from fmtr/amniotic

Sonorium is an ambient soundscape mixer for Home Assistant that lets you craft immersive audio environments throughout your home. Stream richly layered sounds—from distant thunder and rainfall to forest wildlife and flowing water—to any media player in your space, creating the perfect atmosphere for focus, relaxation, or sleep.

Notifications You must be signed in to change notification settings

synssins/sonorium

 
 

Repository files navigation

Sonorium

Sonorium

Multi-Zone Ambient Soundscape Mixer

Sonorium lets you create immersive ambient audio environments. Stream richly layered soundscapes—from distant thunder and rainfall to forest ambiance and ocean waves—to speakers throughout your home or directly through your computer.

Two Ways to Use Sonorium

Standalone Windows App

Download and run without any dependencies. Perfect for desktop ambient sound.

Download Latest Release | Installation Guide

  • Single portable executable—no installation required
  • Local audio playback through your default speakers
  • Stream to DLNA network speakers
  • Automatic updates built-in

Home Assistant Addon

Integrate with your smart home for whole-house audio.

Add Repository to Home Assistant

  • One-click install from addon store
  • Use any Home Assistant media_player
  • Organize speakers by room, floor, or area
  • Control from the HA dashboard

Screenshots

Channels View

Create and manage multiple audio channels, each streaming to different speakers.

Channels

Theme Selection

Choose from your library of ambient themes for each channel.

Theme Selection

Themes Library

Organize your audio files into themes with favorites and categories.

Themes

Settings

Configure speakers, volume defaults, and other preferences.

Settings


What's New

Home Assistant Addon v1.2.88-dev

Bug Fixes

  • Mobile Sidebar Close - Fixed mobile menu not closing when tapping the hamburger button or the overlay area. The sidebar now properly collapses on mobile devices.
  • Single Speaker Toggle - Fixed speaker toggle bouncing back to enabled when users with only one speaker tried to disable it.

Home Assistant Addon v1.2.83

Plugin Browser & Catalog

  • Browse Available Plugins - New "Browse Catalog" tab in Settings → Plugins lets you discover and install plugins directly from the Sonorium plugin repository with one click.
  • One-Click Install - Install plugins without manually downloading ZIP files. The catalog shows installed status and available updates.

UI Improvements

  • Page Refresh Persistence - Refreshing the browser now stays on your current page instead of returning to Channels view.
  • Settings Menu Stays Expanded - When viewing any Settings sub-page, the Settings menu remains expanded through page refreshes.
  • Speaker IP Addresses - The Settings → Speakers page now displays each speaker's IP address.

Bug Fixes

  • MQTT Entity Compatibility - Updated for Home Assistant Core 2026.4+ compatibility.
  • Plugin Catalog Refresh - Uninstalling a plugin now immediately updates the catalog's "Installed" status.

Home Assistant Addon v1.2.70

  • Renamed Sonos Entity Support - Sonos speakers are now detected using Home Assistant's entity registry platform field rather than relying on the entity_id containing "sonos". Users who have renamed their Sonos entities will now have them properly detected.
  • Device-Inherited Area Fix - Speakers assigned to an area via their parent device (rather than directly on the entity) now properly display their area instead of "Unassigned".

Home Assistant Addon v1.2.67

  • Max Channels Setting Now Works - Fixed an issue where the sonorium__max_channels addon setting was ignored. Users can now configure up to 10 channels as intended.

Home Assistant Addon v1.2.66

Google Cast Streaming Fixed

  • HA API Fallback - When Cast device IP cannot be discovered (e.g., device on different VLAN), Sonorium now falls back to Home Assistant's media_player.play_media service. This allows Cast streaming to work across VLANs without manual IP configuration.
  • mDNS Discovery - Added zeroconf/mDNS discovery as an additional IP resolution method for Cast devices on the same network segment.
  • Improved Device Detection - Broader Cast device recognition (Nest Hub, Chromecast, Google Home variants).

Sonos WebSocket Fix

  • Large Installation Support - Fixed "message too big" error that occurred when querying device registry in Home Assistant installations with many devices. Increased WebSocket message limit from 1MB to 10MB.

Settings → Speakers UI Fix

  • Restored Floor/Room Hierarchy - Fixed a regression where the Settings → Speakers page showed a spinning circle instead of the proper floor/area/speaker tree view.

Sparse Playback Timing

  • Exclusive Track Spacing - Increased the minimum gap between exclusive tracks from 30 seconds to 2 minutes. This prevents multiple exclusive tracks (like different lute songs in a tavern theme) from playing back-to-back.

Windows App v0.2.48-dev (Beta)

⚠️ Beta Testing: This version is available in the dev channel for testing. Please report issues!

  • HEOS Speaker Support (Beta) - Denon/Marantz HEOS speakers discovered and controlled via CLI protocol
  • HEOS Discovery - Automatic detection of HEOS devices via SSDP and mDNS
  • pyheos Integration - Uses pyheos library for reliable HEOS communication (falls back to raw telnet)

Features

Multi-Zone Audio

  • Multiple Channels: Run up to 10 independent audio channels simultaneously (configurable)
  • Per-Channel Themes: Each channel plays its own theme
  • Flexible Speaker Selection: Target individual speakers, entire rooms, floors, or custom speaker groups
  • Live Speaker Management: Add or remove speakers from active channels without interrupting playback

Theme System

  • Theme-Based Organization: Audio files organized into theme folders (Thunder, Forest, Ocean, etc.)
  • Automatic Mixing: All recordings in a theme blend together seamlessly
  • Theme Favorites: Star your most-used themes for quick access
  • Custom Categories: Organize themes into categories like "Weather", "Nature", "Urban"
  • Theme Icons: Visual icons for easy theme identification
  • Bundled Themes: Includes Sleigh Ride, Tavern, and "A Rainy Day... Or is it?" out of the box

Track Mixer

Fine-tune how each audio file plays within a theme:

  • Presence Control - Set how often each track appears in the mix (0-100%)
  • Per-Track Volume - Adjust amplitude independent of presence
  • Playback Modes:
    • Auto - Automatically selects best mode based on file length
    • Continuous - Loop with seamless crossfade
    • Sparse - Play once, wait before repeating (for short sounds)
    • Presence - Fade in/out based on presence setting

Presets

  • Save/Load Presets - Store track settings as named presets
  • Quick Switching - Select presets directly on channel cards
  • Import/Export - Share presets with the community

Home Assistant Dashboard Integration (Addon)

  • MQTT Entities - Full dashboard control via MQTT (session select, theme/preset dropdowns, play/stop, volume)
  • Human-Readable Names - Theme and preset dropdowns show names instead of UUIDs
  • Status Sensors - See playback status and assigned speakers from your dashboard
  • Automation Support - Use HA automations to trigger soundscapes (morning alarms, schedules, etc.)

Modern Web Interface

  • Responsive Design: Works on desktop and mobile
  • Dark Theme: Easy on the eyes
  • Real-Time Status: See what's playing across all channels
  • Drag & Drop: Upload audio files directly through the UI

Why Ambient Sound?

Ambient soundscapes aren't just background noise—they're a powerful tool for mental wellness and productivity:

  • ADHD & Focus: Background noise can improve concentration by providing consistent auditory input
  • Misophonia: Ambient masking helps cover trigger sounds
  • Anxiety & Stress: Nature sounds activate the parasympathetic nervous system
  • Sleep: Consistent ambient sound masks disruptive noises
  • Work & Study: Moderate ambient noise can boost creative thinking

Quick Start

Standalone App

  1. Download Sonorium.exe from the Releases page
  2. Run the executable (click "More info" → "Run anyway" if Windows SmartScreen appears)
  3. Create a session, select a theme and speakers
  4. Play and enjoy your ambient soundscape

Home Assistant Addon

  1. Install the addon using the button above
  2. Open Sonorium from your Home Assistant sidebar
  3. Add Themes: Create themes and upload audio via the web interface
  4. Create a Channel: Select a theme and speakers
  5. Play: Hit the play button

Documentation

Full documentation is available in the Wiki:

Supported Formats

Audio files: .mp3, .wav, .flac, .ogg

Single-file themes loop seamlessly using crossfade blending—no jarring restarts!

Supported Speakers

Standalone App

  • Local audio output (default speakers)
  • DLNA/UPnP network speakers
  • Sonos speakers (via SoCo library)
  • Arylic/Linkplay speakers (via HTTP API)
  • HEOS speakers (Denon/Marantz) - Beta, via CLI protocol
  • Coming soon: AirPlay (other devices), Chromecast

Home Assistant Addon

  • Any media_player entity in Home Assistant
  • Google Cast (Chromecast, Nest Hub, Google Home) - with HA API fallback for cross-VLAN setups
  • Sonos - Native streaming via SoCo library
  • Organized by floors, areas, and custom groups

API Reference

Sonorium provides a REST API for integration:

Streams

  • GET /stream/{theme_id} - Direct audio stream for a theme
  • GET /stream/channel{n} - Audio stream for channel N

Sessions/Channels

  • GET /api/sessions - List all sessions
  • POST /api/sessions - Create a new session
  • POST /api/sessions/{id}/play - Start playback
  • POST /api/sessions/{id}/stop - Stop playback
  • POST /api/sessions/{id}/volume - Set volume

Themes

  • GET /api/themes - List all themes
  • POST /api/themes/create - Create a new theme
  • POST /api/themes/{id}/upload - Upload audio file

Acknowledgements

Sonorium is a fork of Amniotic by fmtr. The original project laid the groundwork with its innovative approach to ambient soundscape mixing.

License

See LICENSE file for details.

Contributing

Contributions are welcome! Please open an issue to discuss changes before submitting a PR.

About

Sonorium is an ambient soundscape mixer for Home Assistant that lets you craft immersive audio environments throughout your home. Stream richly layered sounds—from distant thunder and rainfall to forest wildlife and flowing water—to any media player in your space, creating the perfect atmosphere for focus, relaxation, or sleep.

Resources

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published

Languages

  • Python 72.2%
  • JavaScript 15.7%
  • HTML 5.7%
  • CSS 5.6%
  • Shell 0.3%
  • PowerShell 0.3%
  • Dockerfile 0.2%