Intercom Setup - lingeringsocket/SoftRains GitHub Wiki

On Raspberry Pi 3, tested on 2016-11-25-raspbian-jessie-lite via ssh headless. Prerequisites:

sudo apt-get install sox libsox-fmt-all oracle-java8-jdk mplayer

On Ubuntu, get Oracle JDK 8 via additional repository instead.

Also install sbt

Configure by creating SoftRains/intercom/src/main/resources/application.conf, then build and run:

cd SoftRains
sbt intercom/run

If using a Bluetooth speaker, set up pulseaudio to run as system, and then

pactl set-default-sink bluez_sink.XX_XX_XX_XX_XX_XX  ## (or use pavucontrol via ssh -Y)

Otherwise just use alsamixer to configure audio input/output.

Bluetooth microphone may work on Ubuntu, but won't currently work on Raspbian due to old pulseaudio version; if you want to try building from source, this is as far as I got (results not stable yet):

sudo apt-get install git intltool autoconf build-essential libtool libjson-c-dev libsndfile-dev libcap-dev libdbus-1-dev libdbus-glib-1-dev libsbc-dev libbluetooth-dev libudev-dev
git clone git://anongit.freedesktop.org/pulseaudio/pulseaudio
cd pulseaudio
git checkout stable-7.x
./bootstrap.sh --enable-udev --enable-bluez5 --enable-bluez5-native-headset --with-dbus
make
sudo make install

Probably need to do some symlink fixes as well.