<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/using-a-raspberry-pi-as-a-bluetooth-speaker-with-pipewire-xrol8srvz" -->

---
title: Using a Raspberry Pi as a Bluetooth speaker with PipeWire
description: A step-by-step guide to turning a Raspberry Pi into a headless Bluetooth speaker using PipeWire and WirePlumber. The setup uses RaspberryPi OS Lite with...
canonical: https://daily.dev/posts/using-a-raspberry-pi-as-a-bluetooth-speaker-with-pipewire-xrol8srvz
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Using a Raspberry Pi as a Bluetooth speaker with PipeWire | daily.dev
og:description: A step-by-step guide to turning a Raspberry Pi into a headless Bluetooth speaker using PipeWire and WirePlumber. The setup uses RaspberryPi OS Lite with...
og:url: https://daily.dev/posts/using-a-raspberry-pi-as-a-bluetooth-speaker-with-pipewire-xrol8srvz
og:image: https://api.daily.dev/og/posts/XrOl8SRvZ.png
og:image:alt: Using a Raspberry Pi as a Bluetooth speaker with PipeWire
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Using a Raspberry Pi as a Bluetooth speaker with PipeWire

**[Collabora Blog](https://daily.dev/sources/collabora)** · 5 min read · 0 upvotes · 0 comments

## Summary

A step-by-step guide to turning a Raspberry Pi into a headless Bluetooth speaker using PipeWire and WirePlumber. The setup uses RaspberryPi OS Lite with PipeWire installed from Debian Bookworm (or bullseye-backports) repositories, a Python DBus agent script to handle automatic Bluetooth pairing and A2DP connections without a UI, and a systemd user service to start the agent on boot. The result is a bridge between any Bluetooth-capable phone or laptop and an analog speaker connected to the Pi's 3.5mm jack, supporting codecs like SBC-XQ, LDAC, aptX, and FastStream.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.collabora.com/news-and-blog/blog/2022/09/02/using-a-raspberry-pi-as-a-bluetooth-speaker-with-pipewire-wireplumber>

## Questions this post answers

### How do I install PipeWire with Bluetooth support on Raspberry Pi OS Lite?

Install PipeWire from the bullseye-backports repository rather than the default Bullseye packages, which are too old. Run: add the bullseye-backports source, then `sudo apt -t bullseye-backports install pipewire wireplumber libspa-0.2-bluetooth`. PipeWire supports A2DP with optional codecs (SBC-XQ, LDAC, aptX, aptX HD, aptX-LL, FastStream) out of the box, and WirePlumber automatically routes audio from connected Bluetooth devices to the audio chipset.

_Developers building embedded Linux audio projects track PipeWire and BlueZ developments on daily.dev._

### How do I make a Raspberry Pi automatically accept Bluetooth pairing without a keyboard or screen?

Create a Python DBus agent using the BlueZ AgentManager1 interface with 'NoInputNoOutput' capability. The agent sets the adapter as permanently discoverable (DiscoverableTimeout=0), auto-authorizes A2DP and AVRCP UUIDs, and registers as the default agent. Deploy it as a systemd user service in ~/.config/systemd/user/ so it starts on autologin boot. Also set JustWorksRepairing=always in /etc/bluetooth/main.conf to allow re-pairing without interaction.

_Those building headless Pi audio or IoT devices find relevant BlueZ and PipeWire guides on daily.dev._

## Similar posts on daily.dev

- [A Raspberry Pi Zero 2 W turned my old speakers into the best kitchen audio setup](https://daily.dev/posts/a-raspberry-pi-zero-2-w-turned-my-old-speakers-into-the-best-kitchen-audio-setup-5iokuvpfk) · XDA Developers · 0 upvotes · 0 comments
- [I turned a spare Raspberry Pi into a Spotify Connect streamer for my old stereo, and it sounds better than any smart speaker](https://daily.dev/posts/i-turned-a-spare-raspberry-pi-into-a-spotify-connect-streamer-for-my-old-stereo-and-it-sounds-bette-xmwufucrp) · XDA Developers · 0 upvotes · 0 comments
- [My headless Raspberry Pi can finally be a real Spotify Connect player without a workaround](https://daily.dev/posts/my-headless-raspberry-pi-can-finally-be-a-real-spotify-connect-player-without-a-workaround-bm40tbt3j) · XDA Developers · 0 upvotes · 1 comments
- [Pi 5 Becomes ALSA-Compatible TOSLINK Sound Card](https://daily.dev/posts/pi-5-becomes-alsa-compatible-toslink-sound-card-w5bfkh8pz) · Hackaday · 0 upvotes · 0 comments
- [The Raspberry Pi 500\+ Works as a Standalone Keyboard \(Well, Kinda\)](https://daily.dev/posts/the-raspberry-pi-500-works-as-a-standalone-keyboard-well-kinda--vp4qmmsxa) · omg\! ubuntu\! · 0 upvotes · 0 comments

---

Tags: [#bluetooth](https://daily.dev/tags/bluetooth), [#linux](https://daily.dev/tags/linux), [#raspberry-pi](https://daily.dev/tags/raspberry-pi)

[View this post on daily.dev](https://daily.dev/posts/using-a-raspberry-pi-as-a-bluetooth-speaker-with-pipewire-xrol8srvz)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Using a Raspberry Pi as a Bluetooth speaker with PipeWire","url":"https://daily.dev/posts/using-a-raspberry-pi-as-a-bluetooth-speaker-with-pipewire-xrol8srvz","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/using-a-raspberry-pi-as-a-bluetooth-speaker-with-pipewire-xrol8srvz"},"datePublished":"2026-08-11T08:57:11.062Z","dateModified":"2026-10-15T02:23:18.694Z","description":"A step-by-step guide to turning a Raspberry Pi into a headless Bluetooth speaker using PipeWire and WirePlumber. The setup uses RaspberryPi OS Lite with...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/058101ae6f6034cb745c0d00de3d5f66?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/058101ae6f6034cb745c0d00de3d5f66?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Collabora Blog","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Collabora Blog","logo":"https://media.daily.dev/image/upload/s--ZGZ0FjqS--/f_auto,q_auto/v1786438306/logos/collabora?_a=BAMAMicg0","url":"https://daily.dev/sources/collabora"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/using-a-raspberry-pi-as-a-bluetooth-speaker-with-pipewire-xrol8srvz","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"bluetooth,linux,raspberry-pi","timeRequired":"PT5M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Collabora Blog","item":"https://daily.dev/sources/collabora"},{"@type":"ListItem","position":3,"name":"Using a Raspberry Pi as a Bluetooth speaker with PipeWire"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/using-a-raspberry-pi-as-a-bluetooth-speaker-with-pipewire-xrol8srvz#faq","mainEntity":[{"@type":"Question","name":"How do I install PipeWire with Bluetooth support on Raspberry Pi OS Lite?","acceptedAnswer":{"@type":"Answer","text":"Install PipeWire from the bullseye-backports repository rather than the default Bullseye packages, which are too old. Run: add the bullseye-backports source, then `sudo apt -t bullseye-backports install pipewire wireplumber libspa-0.2-bluetooth`. PipeWire supports A2DP with optional codecs (SBC-XQ, LDAC, aptX, aptX HD, aptX-LL, FastStream) out of the box, and WirePlumber automatically routes audio from connected Bluetooth devices to the audio chipset. Developers building embedded Linux audio projects track PipeWire and BlueZ developments on daily.dev."}},{"@type":"Question","name":"How do I make a Raspberry Pi automatically accept Bluetooth pairing without a keyboard or screen?","acceptedAnswer":{"@type":"Answer","text":"Create a Python DBus agent using the BlueZ AgentManager1 interface with 'NoInputNoOutput' capability. The agent sets the adapter as permanently discoverable (DiscoverableTimeout=0), auto-authorizes A2DP and AVRCP UUIDs, and registers as the default agent. Deploy it as a systemd user service in ~/.config/systemd/user/ so it starts on autologin boot. Also set JustWorksRepairing=always in /etc/bluetooth/main.conf to allow re-pairing without interaction. Those building headless Pi audio or IoT devices find relevant BlueZ and PipeWire guides on daily.dev."}}]}
```

