Project breakdown
From source to speaker in six steps.
Source
Raspberry Pi 5
The music plays on the Pi itself, so the audio is available in digital form before it reaches the converter.
- 4 Cortex-A76 cores, 2.4 GHz
- source: a network player on the Pi
- no analogue input, because the DAC2 HD is output-only
Analysis
Raspberry Pi 5 processor
The Pi keeps measuring spectrum, loudness, bass content and stereo width. A short buffer lets it look a fraction of a second ahead, so the filter never lags behind the music.
- spectrum in bands
- loudness in LUFS
- bass below 125 Hz, width above 300 Hz
Recognition
Google Coral Edge TPU
A small neural network listens to short windows of audio and suggests what kind of material is playing: dense bass, an upfront vocal, an acoustic recording.
- M.2 module on a PCIe HAT
- 8-bit (int8) networks
- short audio windows
Shaping
BBKOX filter on the Pi 5
The filter moves the track towards your sound: it adds bass, widens the stage and keeps the peaks in check. Settings change smoothly, over seconds, so you never hear it pumping.
- bass: boost and harmonics
- space: stereo sides and reverb
- limiter on the output
Converter
HiFiBerry DAC2 HD
The finished signal leaves through the converter seated on the GPIO header and reaches the monitors over an RCA cable.
- 192 kHz / 24-bit
- RCA output up to 2.1 V RMS
- signal-to-noise ratio: 123 dB
Speakers
iLoud Micro Monitor 2
A pair of active nearfield monitors. The target sound is tuned for them, including how much bass a 3-inch driver can deliver.
- RCA input
- 49 Hz – 28 kHz (±2 dB)
- ARC room correction built in
The easiest way to get it is to hear it.