Skip to content

Instantly share code, notes, and snippets.

@borancar
borancar / speaker-agent.py
Last active September 14, 2022 17:18
Bluetooth speaker agent (A2DP, AVRCP, HFP, HSP), all your bluetooth devices streaming to Linux
#!/usr/bin/python3
# SPDX-License-Identifier: LGPL-2.1-or-later
import dbus
import dbus.service
import dbus.mainloop.glib
from gi.repository import GLib
BUS_NAME = 'org.bluez'
AGENT_INTERFACE = 'org.bluez.Agent1'