A Speaker That Won't Listen While You Hold Its Music
Dec 6, 2026
Our Bose SoundLink Micro is the small, rugged one from 2017. It only speaks Bluetooth, so everyone in the family who wanted to play something on it had to pair their own phone first, and then it was stuck to whoever paired last.
So it got a Pi. The Pi Zero 2 W that used to be the keyboard half of my KVM had been sitting idle since a Pi Zero W took its place. Now it sits next to the Bose, shows up in everyone's AirPlay list as "Bose Micro", and passes the audio on over Bluetooth. iPhones and Macs just pick it. It's even in the Home app.
That's the less interesting half. The interesting half started when I noticed the Bose has a microphone.
The quick part: AirPlay to Bluetooth
The Pi runs Shairport Sync for AirPlay and BlueALSA for Bluetooth. Three things were worth knowing:
- Debian's Shairport Sync is AirPlay 1 only, and NQPTP, the clock service AirPlay 2 needs, isn't packaged at all. Both had to be built from source on the Pi.
- At 48 kHz the speaker played silence. Everything connected, nothing came out. BlueALSA's log said why:
SBC setup: 0 Hz => 0 bps. Pinning the output to 44.1 kHz fixed it. - The pairing didn't survive a reboot. The Pi had paired with the Bose but never bonded, so the key wasn't saved. Pairing again in one interactive Bluetooth session, with the Pi set to accept bonding, made it stick.
A small service keeps the speaker connected: if the Bose is off, the Pi tries again every ten seconds, so turning the speaker on is all anyone has to do.
A microphone on the shelf
The SoundLink Micro is also a speakerphone. Pair it with a phone, and you can take calls on it.
That caught my eye because of Cadabra, my dictation app. Most of the time I dictate with the MacBook closed on a stand, where its own microphone hears nothing. The last post was all about doing that with AirPods. The Bose is already on the shelf, already connected, and now it has a small computer of its own on the network. Could I just talk to it?
Not directly. The Mac doesn't see the Bose at all: AirPlay only carries sound to a speaker, and the Bose's microphone talks Bluetooth to the Pi, not to the Mac. So it had to go the long way round, which the diagram shows:
On the Pi, BlueALSA now also plays the part of a phone (the Hands-Free "audio gateway"), so the Bose offers it its microphone. The Pi Zero's built-in Bluetooth chip sends call audio out of its PCM pins by default, where nothing is listening; one vendor command at boot routes it back to the system. The first ten-second test came back clear: 16 kHz wideband, my voice in the middle, no gaps.
On the Mac, a small Swift program, bose-mic, plays that audio into BlackHole, a virtual audio device, and makes BlackHole the default input. Cadabra's Automatic microphone follows the default input, so it records the Bose without knowing anything about it.
Like with AirPods, the Bose can't be a speaker and a microphone at once. So bose-mic only opens the microphone while something is actually recording: it checks twenty times a second whether any app is reading from BlackHole. Before I ran it, I asked the Claude session that had worked on Cadabra's AirPods support what would go wrong, and it had two warnings. Cadabra opens its microphone on every press of its key, including shortcuts that it then cancels within about 0.12 s, so bose-mic waits 0.15 s before waking the Bose. And BlackHole delivers silence instantly, so Cadabra will say it's listening before the Bose has sent a single sample: any delay in opening the microphone eats the first word.
So the number to measure was how long the microphone takes to open. Measuring it was where things went wrong.
Zero bytes
The test recording hung. The Pi opened the link to the Bose's microphone within a second, the log said so, and then not a single byte arrived. I tried again a few minutes later, and it hung again, for forty seconds.
Both times, music was playing. The one clean recording earlier had been made right after a restart, when nothing was playing at all.
Then I found that the Mac's Music app was connected to "Bose Micro", paused. That's exactly the state Cadabra leaves it in: it pauses Music the moment the key goes down. So I ran the test in that state, twice:
| Situation | First audio from the Bose |
|---|---|
| Music paused, still connected over AirPlay | nothing in 6 s, both times |
| Music moved to another speaker | 0.19 s and 0.21 s |
The microphone itself was fast: 0.2 seconds, about what the AirPods take. But as long as the Pi held the Bose's music link, the Bose sent nothing back, and pausing doesn't release it. Shairport Sync keeps its output open for the whole AirPlay session, playing or paused, and the session lasts as long as Music keeps "Bose Micro" selected. Pausing a song frees nothing.
I couldn't make the Bose listen while it held the music, so I needed something that would let go of the music.
Letting go
Shairport Sync has no setting to release its output on demand. So it no longer plays to the Bose directly. It plays into an ALSA loopback, a virtual sound card that hands everything back out its other end, and a small relay on the other end passes the audio on to BlueALSA. The relay can close its side whenever it likes, and then the Bluetooth music link goes with it. It does that in two cases:
- When the microphone is wanted. The capture script leaves a file saying so, waits for the relay to answer that it's done, and only then starts recording.
- After five seconds of digital silence, so a paused session doesn't hold the speaker for no reason.
When the microphone closes, the relay opens the music link again and the song carries on.
The first version still took 3.5 seconds in one run. Music had just come back, the relay had started sending to the Bose, and opening the Bose's music link can take a few seconds. The relay's write was blocking until it could, so it missed the request to let go the whole time. The part that has to notice the request can never be the part that waits. Writes became non-blocking: if the Bose isn't ready, at most half a second of audio is queued and older audio is dropped. After that:
| Situation | First audio from the Bose |
|---|---|
| Music playing | 0.48 s, 0.46 s |
| Music just paused | 0.48 s |
| Paused for 8 s (already let go) | 0.23 s |
Letting go and switching the Bose to call mode costs about a quarter of a second on top of the microphone itself.
What it's like
Through Cadabra, the Bose's audio arrives 0.5 to 0.6 seconds after recording starts, plus the 0.15 s wait for shortcuts. The relay picks the music back up 0.2 to 0.4 seconds after I let go of the key. It works the way AirPods do: Music pauses while I talk and comes back when I'm done, except the microphone is a speaker across the desk. bose-mic now starts at login.
It has the same weakness as AirPods: anything that keeps an input open keeps the Bose in microphone mode. The first time I tried it, the Bose went quiet and stayed quiet. System Settings was open on the Sound page, and its input level meter counts as recording.
The AirPods post ended with the hitch I couldn't remove, only hide, because the switch between music and microphone happens inside the AirPods. The Bose has the same two halves, and it can't give its microphone to anyone holding its music. What differs is who holds the music: here it's a small relay on a Pi I own, so it could simply let go. When a device won't do two things at once, look for whoever is holding the other one.