https://github.com/ikskuh/media-pi
Provides config files for a small multimedia distribution that can be used as a smart speaker or stereo.
https://github.com/ikskuh/media-pi
a2dp-sink bluetooth-music pulseaudio-client raspberry-pi rpi
Last synced: about 2 months ago
JSON representation
Provides config files for a small multimedia distribution that can be used as a smart speaker or stereo.
- Host: GitHub
- URL: https://github.com/ikskuh/media-pi
- Owner: ikskuh
- Created: 2021-01-24T19:04:54.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-01-24T19:58:15.000Z (over 5 years ago)
- Last Synced: 2025-03-10T12:56:05.445Z (over 1 year ago)
- Topics: a2dp-sink, bluetooth-music, pulseaudio-client, raspberry-pi, rpi
- Language: Python
- Homepage: https://wiki.random-projects.net/Projects/xq/MusicPi
- Size: 47.9 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# MediaPi
This repo contains configuration files to create a small standalone multimedia node that can play/stream music via:
- Bluetooth A2DP
- ZeroConf PulseAudio streaming
## Installation Instruction
Clone this repo into the default user `/home/alarm/media-pi`. Copy everything from `etc` into `/etc`
### Command sequence
Run as root:
```
git clone https://github.com/MasterQ32/media-pi
cp -r media-pi/etc /etc
useradd --home-dir /var/run/pulse pulse
gpasswd -a pulse audio
pacman -Syu alsa-firmware alsa-lib alsa-utils avahi pulseaudio pulseaudio-zeroconf bluez python-dbus python-gobject pulseaudio-bluetooth brcm-patchram-plus
echo "dtparam=audio=on" >> /boot/config.txt
echo "audio_pwm_mode=2" >> /boot/config.txt
systemctl --global disable pulseaudio.service pulseaudio.socket
systemctl enable avahi-daemon
systemctl enable pulseaudio
systemctl enable bluetooth
systemctl enable bluetooth-agent
systemctl enable bluetooth-driver
```
### Changing bluetooth device name
```
bluetoothctl system-alias 'MediaPi'
```
## Further Reading
- https://scribles.net/auto-power-on-bluetooth-adapter-on-boot-up/
- https://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/Modules/
- https://hwblog.org/2018/06/08/how-to-get-bluetooth-working-on-raspberry-pi-3-model-b-or-b-with-arch-linux-arm/
- https://github.com/RPi-Distro/bluez-firmware/tree/master/broadcom (firmware bin)
- https://github.com/pauloborges/bluez/blob/master/lib/uuid.h