{"id":17129071,"url":"https://github.com/bemacized/snips-sonos-relay","last_synced_at":"2026-01-20T04:01:12.211Z","repository":{"id":41774065,"uuid":"203247413","full_name":"BeMacized/snips-sonos-relay","owner":"BeMacized","description":"Relay for redirecting audio output from Snips AI devices to Sonos smart speakers.","archived":false,"fork":false,"pushed_at":"2023-01-07T08:52:27.000Z","size":869,"stargazers_count":0,"open_issues_count":15,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-06T03:13:21.677Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/BeMacized.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-08-19T20:42:56.000Z","updated_at":"2019-10-24T20:49:41.000Z","dependencies_parsed_at":"2023-02-06T17:30:44.609Z","dependency_job_id":null,"html_url":"https://github.com/BeMacized/snips-sonos-relay","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/BeMacized/snips-sonos-relay","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BeMacized%2Fsnips-sonos-relay","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BeMacized%2Fsnips-sonos-relay/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BeMacized%2Fsnips-sonos-relay/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BeMacized%2Fsnips-sonos-relay/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BeMacized","download_url":"https://codeload.github.com/BeMacized/snips-sonos-relay/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BeMacized%2Fsnips-sonos-relay/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28595314,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T02:08:49.799Z","status":"ssl_error","status_checked_at":"2026-01-20T02:08:44.148Z","response_time":117,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-14T19:08:45.713Z","updated_at":"2026-01-20T04:01:12.172Z","avatar_url":"https://github.com/BeMacized.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Snips Sonos Relay\n\nRelay for redirecting audio output from [Snips](https://snips.ai/) AI devices to [Sonos](https://www.sonos.com) smart speakers.\n\n## Getting started\n\nDocker and Docker Compose are not absolutely required, you can take a different approach.\nHowever, as this is my personal approach, this is how it is explained. \n\n### Docker Compose entry\n\nAdd the following to your `docker-compose.yml`. The environment variables are explained below this example.\n\n**Note:** In order for the relay to be able to discover your Sonos devices, the container has to run in network_mode `host`.\n\n```yaml\nversion: '3',\nservices:\n    ...\n    snips-sonos-relay:\n        image: bemacized/snips-sonos-relay:latest\n        container_name: snips-sonos-relay\n        restart: unless-stopped\n        network_mode: host\n        environment:\n          - MQTT_HOST=snips_mqtt_host\n          - HTTP_HOST=192.168.1.3\n          - SNIPS_SITE_TO_SONOS_ZONE_MAP=livingroom=Living Room\n```\n\n\n### Environment Variables\n| Env Variable                 | Optional | Default | Description                                                                                                                                                                                                                                                                               |\n|------------------------------|----------|---------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| SNIPS_SITE_TO_SONOS_ROOM_MAP | No       |         | The mapping of your snips' site id's (e.g. livingroom, bedroom, kitchen, etc) to Sonos rooms. Each entry separates the snips site id from the sonos room name with a `=` character. Multiple entries are comma separated. e.g. `snipsSiteId1=sonosRoomName1,snipsSiteId2=sonosRoomName2`  |\n| MQTT_HOST                    | No       |         | The hostname or IP address for the MQTT server used with Snips                                                                                                                                                                                                                            |\n| HTTP_HOST                    | No       |         | The host that your Sonos devices will be able to reach the relay on.                                                                                                                                                                                                                      |\n| HTTP_PORT                    | Yes      | 8080    | The port that your Sonos devices will be able to reach the relay on.                                                                                                                                                                                                                      |\n| MQTT_PORT                    | Yes      | 1883    | The post for the MQTT server used with Snips                                                                                                                                                                                                                                              |\n| MQTT_USERNAME                | Yes      |         | The username to authenticate with the MQTT broker                                                                                                                                                                                                                                         |\n| MQTT_PASSWORD                | Yes      |         | The password to authenticate with the MQTT broker                                                                                                                                                                                                                                         |\n| SONOS_VOLUME                 | Yes      | 30      | The volume to play the audio from Snips at. Range 0 - 100.                                                                                                                                                                                                                                |\n| SONOS_SCAN_WINDOW            | Yes      | 10000   | The time in milliseconds to spend searching for Sonos devices on start.   If it's too short, it might miss a device, but if it's too long you spend more time waiting for the relay to start.                                                                                             |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbemacized%2Fsnips-sonos-relay","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbemacized%2Fsnips-sonos-relay","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbemacized%2Fsnips-sonos-relay/lists"}