I'm building own.audio, a family library for music, audiobooks and podcasts, with an open-source server I measured on a Raspberry Pi a few weeks ago. My family's music, audiobooks and podcasts live on our own server. The phone apps play them fine, but a phone makes a poor kitchen radio. It leaves the room with its owner, it rings in the middle of a chapter, and a child has to ask for it. I wanted a box that stays put, has a screen anyone can use, and plays from our library without a phone.
I didn't start with a Raspberry Pi. I first wondered whether the server itself could run on a MikroTik router, then whether a cheap ESP32 board could stream from it, and I even looked at opening an IKEA Bluetooth speaker to give it new firmware. None of that led to a player I'd want in the kitchen. The ready-made streamers that do it well cost several times more than the parts below, and they're built around streaming services, not around a library you own. A Raspberry Pi with an audio board is the cheap way to good sound. It only has to be put together and given software.
So I built one, and then two more. The software is open source: own-audio/box on GitHub, under the MPL-2.0. It installs from an SD card image, and it has been running every day on the three boxes below.
From left: the upright Pi 4 among its speakers, the Pi 3 on its side with the speakerphone in front, and the Pirate Radio, which has no screen at all. The dragon is optional.
Three boxes
| The bench box | The new box | The radio | |
|---|---|---|---|
| Board | Raspberry Pi 3 B+, 1 GB | Raspberry Pi 4, 1 GB | Raspberry Pi Zero 2 W, 512 MB |
| Screen | The original 7" touch display, 800 × 480, landscape | Touch Display 2, 7", 720 × 1280, portrait | none: a phone is the screen |
| Sound | Jabra SPEAK 410, a home-office speakerphone, over USB | Raspberry Pi DAC+ into a powered speaker | Pimoroni pHAT BEAT, its five buttons as media keys |
That's three shapes of the same box: a screen on its side, a screen upright, and no screen at all. The interface lays itself out for each. The Pi 3 B+ was in a drawer, and it's the one I wrote the software on. It went on sale in March 2018 and runs the same current version as the Pi 4; Raspberry Pi promises to make it until at least January 2030. The Pi 4 is the box I built to keep, in a case and on a stand I printed on a 3D printer. The filament is a fresh mint green, and it suits the box. These are its parts:
| Part | Price | In euros |
|---|---|---|
| Raspberry Pi 4, 1 GB | 929 Kč | €37 |
| Official USB-C supply, 5.1 V / 3 A | 247 Kč | €10 |
| Raspberry Pi Touch Display 2, 7" | 1,569 Kč | €63 |
| Raspberry Pi DAC+ | 539 Kč | €22 |
| Standoffs | 99 Kč | €4 |
| SanDisk High Endurance microSD, 32 GB | 539 Kč | €22 |
| Total, without the speaker | 3,922 Kč | €157 |
The printed case and stand aren't in the table. Any powered speaker with a 3.5 mm input will do. A Logitech Z313 set (2.1, 25 W), for example, costs 1,299 Kč (€52), which brings the whole box to 5,221 Kč (€209). Prices are the regular ones at Czech shops in November 2026, and the euros are at 25 Kč to the euro.
The card doesn't need to be a high-endurance one. To spare the card, the box keeps as much as it can in memory. The system log lives in RAM, and goes to the card only while debug access is on (more on that below). Chromium runs in incognito mode, so its cache and profile stay in RAM too. What the box does write are a few small files, its settings and the play queue, when they change. ownbox needs 8 MB of memory, so holding things in RAM costs it almost nothing.
The radio is a Pimoroni Pirate Radio kit: a Zero 2 W with a small DAC board and a speaker. I had built it earlier for another project, and it ran Volumio. It turned out to be the right test for a box with no screen, so it now runs the box, set up and controlled from a phone.
What a box does
- Music: recently added, favourites, albums, artists, playlists and smart playlists, search with an on-screen keyboard, and gapless playback. A playlist continues where it was left.
- Audiobooks and podcasts: continue listening, speed per book, ±30 s, a sleep timer. Positions are saved to the server, so a book stopped on the box continues on the phone at the same second.
- Internet radio: stations from radio-browser.info's open directory.
- Other sources: the box is an AirPlay 2 receiver and a Squeezelite player for Music Assistant. When one of them starts, the box saves its place, lets the sound card go and shows what's playing. An iPhone can play to two boxes at once over AirPlay.
- Phone control: scan a QR code on the box, and the phone's browser shows the same library and player. There's no app to install.
- Everyone in the family: each person signs in with their own account, and a round initial in the top bar switches between them. Each keeps their own queue, their place in a book and their equalizer.
It signs in to an own.audio server, either the open-source server at home or the hosted service, with a QR code on its screen. It's in English, Czech, Slovak and Hungarian, and, machine-translated so far, in German, French, Spanish and Italian.
How it's built
It's one Rust program, ownbox, plus two well-known pieces:
- mpv does the playing. ownbox starts it, restarts it if it dies, and talks to it over its JSON IPC socket. Gapless playback, network reconnects and the equalizer come from mpv and ffmpeg, not from me.
-
The screen is a web page. ownbox serves a small HTML and JavaScript interface, built into the binary, and Chromium shows it full screen inside
cage, a Wayland kiosk compositor. There's no desktop and no window manager. The phone gets the same page.
The binary is 5.4 MB. I build it on a Mac with cargo zigbuild for aarch64, and GitHub Actions builds the releases. Nothing is compiled on the Pi.
The SD card image is plain Raspberry Pi OS Lite, 64-bit, with the box installed. The same card works in a Zero 2 W, a 3, a 4 and a 5. At every boot it looks at what it's in: a screen means the kiosk, no screen means a box run from a phone. Updates come straight from GitHub: each release in the repository is signed, and a box checks for new ones and downloads them itself. It installs them between 3 and 5 at night, when nothing is playing, and puts the previous version back if the new one doesn't start.
Measured
Taken today, on both boxes while they were playing music:
| Pi 3 B+ | Pi 4 | |
|---|---|---|
| Memory in use, whole system | 525 MB of 905 MB | 522 MB of 905 MB |
| ownbox itself | 8 MB | 8 MB |
| CPU clock, capped | 800 MHz | 1.2 GHz |
| Temperature, no cooler | 50 °C | 43 °C |
| Power to the kiosk starting | 22.7 s | 12.6 s |
| System on the card | 3.0 GB | 3.0 GB |
Chromium takes most of the memory. The player and the program around it are small, which is why the radio runs fine in 512 MB. It has no browser at all. A 1 GB board is enough for a box with a screen.
The CPUs are underclocked on purpose: the Pi 4 runs at 1.2 GHz instead of 1.8, the Pi 3 at 800 MHz instead of 1.4 GHz. Playing music needs a fraction of that power, and a lower clock means less heat and less current. Because of that, not even the Pi 4 needs a cooler or a fan: it sits at 43 °C in its printed case, and the box stays silent. Less current matters more than it sounds, as the next section shows.
What broke on the way
The screen browned out the Pi 3. The Pi kept reporting under-voltage, and the sound crackled. I logged vcgencmd get_throttled every five seconds while music played and changed one thing at a time:
| Setup | Samples with under-voltage |
|---|---|
| CPU free, backlight full | about 85 % |
| CPU capped at 800 MHz, backlight full | 23 of 24 |
| CPU capped, backlight dimmed | 24 of 24 |
| CPU capped, backlight off | 1 of 12 |
The CPU wasn't the problem, and dimming didn't help: only a dark backlight did. The real cause turned out to be the supply. The Pi 3 ran on a 2 A phone charger with a 1 m cable, and the backlight pushed it over the edge. On the official 5.1 V / 3 A supply it reports no under-voltage while it plays, with the backlight on. The screen still switches off after 30 seconds without a touch, now to save power rather than the supply, and the first touch only wakes it. The Pi 4 has had the official supply from the start and hasn't reported under-voltage with the backlight on.
The box started from my Mac but not from its charger. Beta images open a root shell over USB, so I can look into a box that never reaches a network. On a charger, though, the Pi 4 sat on a black screen for minutes. It turned out that the kernel's debug shell held the console lock while it waited for a USB host that wasn't there. The kiosk needs that same lock to take over the screen, so it waited too. On the Mac, the host was there and nothing waited. The shell now runs as an ordinary login on the USB port, which waits for nobody.
The audiobook position was saved as zero. When the box shut down, ownbox asked mpv where it was and got nothing, because systemd had already stopped mpv along with ownbox. One line fixed it (KillMode=mixed, so ownbox is told first and stops mpv itself), and a second rule makes sure no position is ever written when mpv gives none.
A dropped connection looked like the end of an episode. If the network went away for a moment, mpv reached the end of what it had downloaded and reported "finished". The box then marked the podcast episode as played and moved on. Now a stream that ends more than ten seconds before its known length counts as interrupted, and the queue waits at the last second heard.
An unplugged speaker played the whole queue. With the USB speakerphone unplugged, mpv couldn't open the sound card, so every track "ended" the moment it started, and the box ran through an album in seconds. Now the queue waits, paused, at the track it reached, the screen says the speaker isn't connected, and Play tries again.
The Zero 2 W and WPA3. The radio couldn't join our home Wi-Fi, a WPA2/WPA3 network on a MikroTik access point. It was refused every time, while a WPA2-only network on the same access point took it at once. Its Wi-Fi chip also can't open a WPA3 network of its own. That decided how a box without a screen is set up. When it has no network, it opens an open setup Wi-Fi, and over it you can only give the box a network, a name and a sound card. Pairing a phone happens later, on your own network.
The start took too long. The first Pi 3 build needed 43.6 seconds from power to the player. Most of that wasn't the box: cloud-init ran on every boot although it only matters once, a service waited for the network although ownbox copes without it, and each settings change at boot reloaded systemd, which costs more than a second each time on a Pi. The Pi 4 now reaches the kiosk in 12.6 seconds. For the seconds that are left, there's a start-up screen with the own.audio logo and a short jingle.
Small things that took longer than they should
-
Scaling the page. The portrait Touch Display 2 needs the page about 1.5 times bigger. Chromium's
--force-device-scale-factorlooks like the answer, but on Wayland it rounds up to 2, and cage then showed the page in a quarter of the screen. The box uses Chromium's own page zoom instead. -
Turning the screen. Settings can turn the picture by 90, 180 or 270 degrees. The picture was easy (
wlr-randr). Touch needs its own calibration matrix for each turn, and it took several rounds before a tap landed where the finger was. - Roaming. When two access points send the same network, NetworkManager stays on the one it joined until the connection drops, even when it's the weaker one. The Wi-Fi chip's own roaming was worse: it kept moving the radio to the far access point and dropped the network every few seconds. The box now turns that off and moves to a clearly stronger access point by itself.
- The power button and the DAC. One button on GPIO3 shuts a Pi down and wakes it again. The DAC+ uses GPIO3 for I²C, so on the Pi 4 shutdown moved to GPIO17, and the same button is wired to both pins.
- Music Assistant over AirPlay arrived garbled, because its AirPlay 2 and shairport-sync disagree. The box is a Squeezelite player for Music Assistant instead, and that plays cleanly.
- The image. The first SD image was 720 MB to download. Leaving out manual pages, unused languages and firmware for Wi-Fi chips no Pi has, and shrinking the file system before compressing, brought it to about 510 MB.
- Genres. For a genre station, the box needs genres it can offer. Our 9,000-track library has 192 genre tags, from "Pop, Rock" to "Rap/Hip Hop / Jazz" and "Musique", and nobody is going to tidy them. The box sorts them into thirteen big groups, and a group with fewer than 20 tracks goes to "Other". Ska and punk are two groups, not one, because that's what I listen to.
Debugging a box you can't touch
On my desk, the biggest help was a serial console over USB. A Pi 4's USB-C port and a Zero 2 W's data port can act as a USB device, so beta images turn them into a serial port with a root shell. Plug the box into a laptop, open screen /dev/cu.usbmodem* 115200, and you're in, with no network, no screen and no keyboard. The box can take its power from the same cable. For hardware work, a box that won't join Wi-Fi or shows a black screen is no longer a mystery: the log is right there. The Pi 3 can't do this, because its only USB controller also carries the Ethernet and every USB port. Stable releases leave the console out.
For a box that's somewhere else, there's another way. Any box will go wrong one day, and its owner will want to send me its logs. So Settings has "Debug access". The owner switches it on, on the box's own screen, and enters a GitHub user name. The box loads that account's public SSH keys from github.com/<user>.keys.
The first version gave those keys root. Then I thought it through. ownbox plays streams from the internet, so a fault in it is the likeliest way in, and ownbox was the one writing the key file. Now the keys go to a separate debug user, written by a root script that checks them again. That user can read every log and the state of every service, and it can change nothing. Fixes reach boxes as signed updates, not over SSH. While debug access is on, the system log is kept on the card, so the start that failed is still there to read after a restart.
Try it
Everything is on GitHub: own-audio/box. Download the image from the latest release, write it with Raspberry Pi Imager ("Use custom"), and switch the Pi on. With a screen, a setup wizard runs on it. Without one, the box opens its own Wi-Fi and a phone does the setup. You need an own.audio server: your own, or an account on the hosted service.
I tested it on the three boxes above. The 5-inch Touch Display 2 and other DAC boards are meant to work but haven't been tried yet. If you build one, I'd like to hear what you built it from.
If you'd like the shorter version to show someone at home, with what it plays, what it costs and how it compares with a smart display, it's on the own.audio blog: The own.audio Box: a Raspberry Pi player for your family's music, audiobooks and podcasts.





Top comments (4)
The under-voltage table is the most useful part of this post — it kills the obvious theory. Capping the CPU barely moved it (about 85% of samples to 23 of 24), dimming the backlight did nothing (24 of 24), and only switching the backlight off dropped it to 1 of 12. That pattern says the backlight driver is drawing near-constant current whatever the PWM duty is, so the screen is really a power problem, not a brightness problem. Did you measure the actual current draw at each backlight level to confirm that? Second: ownbox itself is 8 MB and the whole system is 525 MB of 905 MB — Chromium is eating almost everything. Did you try trimming Chromium itself, single-process mode or dropping its GPU processes, or is the browser now the real bottleneck for the 1 GB boards? And one curiosity: the Pi 3 runs hotter (50 C) than the Pi 4 (43 C) even capped at 800 MHz — is that just the older process node, or does the Pi 3 board dissipate worse?
Thanks, good questions.
No, I didn't measure current. All I had was vcgencmd get_throttled, so the table counts flags, not milliamps. Your reading matches mine, with one more piece. During those tests the Pi 3 was on a 2 A phone charger with a 1 m cable, so it had little margin to begin with. The under-voltage flag trips on short dips, and PWM dimming lowers the average current, not the peak while the LEDs are on. I'd expect it to trip just as often dimmed, but that stays a guess until I put a USB meter on it. Since then the Pi 3 has the official 5.1 V / 3 A supply too, and it reports no under-voltage while it plays, with the backlight on; the flag only shows one dip since boot, most likely during start-up. So the supply was the real fix. The CPU cap stays for heat and noise, not for power. Your question made me look at it again, and I've corrected that section of the post: it blamed the backlight, and the supply was the real cause.
Chromium: I haven't trimmed it. On the 1 GB boards it isn't the bottleneck yet. About 380 MB is still free while music plays, and the kiosk runs fine on the Pi 3 at 800 MHz. The board that really is short of memory, the 512 MB Zero 2 W, runs without a browser, and a phone is its screen. If I ever need memory back on a 1 GB board, Chromium is the first place I'll look.
Staying with a browser was a deliberate choice. The UI is plain HTML, CSS and JavaScript, no framework and no build step, served by ownbox itself. The same page is the kiosk on the box's screen and the remote on any phone that opens ownbox.local, and on the Zero 2 W, which has no screen, the phone's browser is the whole interface. One UI for all three shapes was worth more to me than the memory a native toolkit would save.
The temperatures are one reading each, so it isn't a fair comparison: different times, different cases, and the Pi 3 does the same work with less headroom. The older chip probably plays a part, but I can't separate that from the rest with what I measured.
Running a Rust media daemon across three Raspberry Pis keeps memory footprint predictable under tight RAM ceilings, yet splitting playback and library state across separate nodes shifts the real bottleneck to SD card write amplification and Wi-Fi jitter during gapless buffering. On constrained ARM boards, power-loss index corruption and buffer underruns matter far more than raw CPU throughput. I/O always collects its tax.
Agreed that I/O is the part to watch, and SD cards deserve the suspicion. They were made for cameras and phones, not as a system disk that gets small writes all day. So the box writes as little as it can, and almost everything lives in memory.
One correction: library state doesn't live on the boxes. The library and its index are on the own.audio server, and each box is only a player. There's no database on the card to corrupt.
What stays in memory:
The image also masks the daily apt timers, the man-db index and dpkg backups. The box updates itself from GitHub, so it doesn't need them.
What it writes, all of it small JSON or TOML files:
The position goes to the server every 30 s, but to the card only every 2 minutes, plus at once on pause, skip and stop. Files are written to a temporary file and renamed over the old one, and settings and accounts are fsynced first. A power cut leaves either the old file or the new one, not half of it. It loses at most two minutes of a song's place. A book's or an episode's place lives on the server, so at most 30 s there.
On gapless over Wi-Fi: mpv opens the next file before the current one ends and keeps up to 24 MB buffered, so a short Wi-Fi drop eats into the buffer, not into the music. It also reconnects on its own. On three boxes on home Wi-Fi I haven't heard an underrun yet, but that's experience, not a measurement.
On Rust: I used to write my backends in Python, and for a long time that was great. For almost anything there's a mature, well-tested library. But once a project went into production, the cost showed up: more RAM than the job needed, and a long chain of dependencies that all had to be kept up to date. Often I ended up writing the important part myself anyway. With Rust the box stays small and predictable, which is exactly your point about tight RAM. The price is on my side. Rust code sometimes makes my head spin, and builds are slow: a Python change is deployed in seconds, while a Rust release can take 20–30 minutes before it's running.