Original: https://github.com/lukasjapan/bt-speaker, with some changes for my own car

Robin de Jong c3521e9dd9 6 seconds to 15, which seems to work on the boot from USB 1 year ago
scripts c3521e9dd9 6 seconds to 15, which seems to work on the boot from USB 1 year ago
service 5ac1f65a45 New stuff yo 1 year ago
sound 5ac1f65a45 New stuff yo 1 year ago
.gitignore 950770f701 [Add] pychache 4 years ago
README.md 996f002ad8 Better naming 1 year ago
install.sh a24aefcef2 Force the execute permission 1 year ago

README.md

[New] BT Speaker

This new BT speaker uses commands instead of custom python script. Hopefully this will work longer and better :D

How to:

bash sudo raspi-config

5 Interfacing Options > P2 SSH: Enable 7 Adbanced Options > A4 Audio: Force 3.5mm ('headphone') jack

sudo -i
bash <(curl -s https://glitter.jemoeders.website/biodiscus/bt-speaker/raw/master/install.sh)

Connecting bluetooth

bluetoothctl
# Setup a pairing agent
[bluetooth] default-agent
# Make the Raspberry Pi discoverable
[bluetooth] discoverable on

# On your phone, search and select your Raspberry Pi from Bluetooth menu
# Confirm the pairing on both your phone and Raspberry Pi.
[agent] Confirm passkey 847261 (yes/no): yes
# Authorize A2DP service (first 32 bits: 0000110d)
[agent] Authorize service
[agent] Authorize service 0000110d-0000-1000-8000-00805f9b34fb (yes/no): yes

# Trust the phone so that Raspberry Pi will automatically accept connections from the phone from the next time
[bluetooth] trust 3C:CD:5D:1C:65:4D

# Exit from BlueZ command line interface.
[bluetooth] exit

Reboot!