Code Monkey home page Code Monkey logo

ambience-sound's Introduction

ambience-sound

Stuff for my home ambience sound system. Basic sound manager is a RaspberryPi with Docker containers installed.

Installation

Software

  • Install the latest version of Hypriot on a RaspberryPi
    • Download the latest version from https://blog.hypriot.com/downloads/
    • Copy the image to the SD card using Etcher
    • Raspberry 2 is enough for Spotify Connect
    • User pirate with password hypriot
  • Install ALSA packages
    • apt-get update && apt-get install alsa-utils
  • Configure ALSA to use your USB card as default device (ignore the trashy onboard sound card, hehe)
    • echo "blacklist snd_bcm2835" > /etc/modprobe.d/alsa-blacklist.conf
    • echo "options snd-usb-audio index=0" > /etc/modprobe.d/alsa-base.conf

Hardware

  • Connect a good USB sound card
    • I use a Behringer UCA 202 USB card and do like its sound
    • I've already tested various 2-3 dollars eBay USB Sound cards and most of them are "OK" but suffers with some digital noises. Set Raspberry to the highest volume and adjust your amplifier to the minimum possible gain - the sound must be well heard in your house - so that those noises are minimized.
  • Install amplifier and ceiling speakers
    • JBL round ceiling speakers and car sound amplifiers deliver great results
      • Single Corzus HF 404 (4 channel x 50wrms@4ohm) with 8 x JBL Selenium Speaker 6FR2R
      • Each channel drives two speakers (8 ohm each) in parallel, resulting 4ohm per channel@50wrms (speaker and amplifier are just enough)

Spotify

  • Create docker-compose.yml
version: "3.3"
services:
  rpi-spotify:
    image: flaviostutz/rpi-spotify:1.5.0
    network_mode: host
    restart: always
    devices:
      - /dev/snd:/dev/snd
    environment:
      - SPOTIFY_NAME=Kitchen
      - EQUALIZATION=rock
  • Run docker-compose up -d
  • Open your Spotify with Premium account and click on "Connect to device".
  • "Kitchen" or whatever you set should appear on Spotify. Choose it and the music will start playing on your speakers (hopefully!).
  • For more info, check http://github.com/flaviostutz/rpi-spotify

ambience-sound's People

Contributors

flaviostutz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

ambience-sound's Issues

Use non-permanently connected USB audio interface

I am using your rpi-spotify Docker container on my Raspberry Pi with a USB audio interface. This interface however is usually turned off and it seems like this makes the container crash since it cannot anymore connect to the interface that is configured. Is there a way to configure the container to use a "default" interface and make the USB interface somehow replace the Audio Jack whenever it is connected?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.