mirror of
https://github.com/vipul-sharma20/tora.git
synced 2026-06-28 08:13:05 +00:00
Wireless speaker using raspberry pi
- Shell 100%
| README.md | ||
| tora.sh | ||
Tora
Use traditional wired speakers as wireless using raspberry pi. Just one command required.
Usage
Connect to speaker:
tora connect
Disconnect:
tora disconnect
Setup
-
sudo apt-get update && sudo apt-get install bluez pulseaudio-module-bluetooth python-gobject python-gobject-2 bluez-tools udev -
sudo usermod -a -G lp pi -
vi /etc/bluetooth/audio.conf[General]: Enable=Source,Sink,Media,Socket -
vi /etc/bluetooth/main.confClass = 0x00041C -
vi /etc/pulse/daemon.confresample-method = speex-float-3
-
pulseaudio -D -
vi /etc/udev/rules.d/99-input.rulesSUBSYSTEM="input", GROUP="input", MODE="0660" KERNEL=="input[0-9]*", RUN+="/usr/lib/udev/bluetooth" -
sudo mkdir /usr/lib/udev && cd /usr/lib/udev -
vi bluetoothand put thisAUDIOSINKmight differe check yourspactl list short sinks
-
chmod 777 bluetooth -
sudo amixer cset numid=3 n(n can be 0=auto, 1=jack, 2=hdmi)
Connecting through Bluetooth
bluetoothctlpower onagent ondefault-agentdiscoverable onpairable onconnect <mac-address-here>
The Name
Meaning of Tora: here This is the first instance of wireless technology being used in this series