Skip to content
James Barnsley edited this page Nov 1, 2019 · 1 revision

WORK IN PROGRESS

Audio output

  • Use the built-in Snapcast image
  • Use pulseaudio

Pulseaudio

  • On a Mac follow these instructions to install Pulseaudio
  • Edit docker-composer.yaml to include:
  mopidy:
    ...
    environment:
      - PULSE_SERVER=docker.for.mac.localhost
    ...
    volumes:
      - ~/.config/pulse:/home/pulseaudio/.config/pulse
      ...
  • Edit mopidy.conf to include:
[audio]
output = pulsesink server=docker.for.mac.localhost
# Or use the following for both pulseaudio AND snapcast
#output = tee name=t t. ! queue ! pulsesink server=docker.for.mac.localhost t. ! audioresample ! audioconvert ! audio/x-raw,rate=48000,channels=2,format=S16LE ! wavenc ! filesink location=/tmp/snapfifo
Clone this wiki locally