Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vrixyz/music
https://github.com/vrixyz/music
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/vrixyz/music
- Owner: Vrixyz
- Created: 2020-05-02T09:43:48.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-08-19T12:49:07.000Z (over 4 years ago)
- Last Synced: 2024-10-29T23:46:00.684Z (3 months ago)
- Language: Rust
- Size: 17.6 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# music
Plays a sound from assets when an action occurs.
Designed to work with https://github.com/Vrixyz/button for connection over bluetooth.
# Bluetooth
To setup bluetooth on a raspberry pi headless is not that easy, here is my setup:
- ~/.asoundrc
```
defaults.bluealsa.device "5C:49:7D:88:06:39"
defaults.bluealsa.profile "a2dp"
defaults.bluealsa.delay 10000
pcm.btreceiver {
type plug
slave.pcm {
type bluealsa
device "5C:49:7D:88:06:39"
profile "a2dp"
}
hint {
show on
description "Bluetooth Receiver"
}
}
pcm.!default {
type plug
slave.pcm "btreceiver"
}
```
- I had to install `blue-alsa` for playing music and `pulseaudio` to communicate with my soundbar.
- I connected to bluetooth devices (button + soundbar) via bluetoothctl