logoalt Hacker News

Fully Featured Audio DSP Firmware for the Raspberry Pi Pico

306 pointsby BoingBoomTschaklast Saturday at 1:28 PM85 commentsview on HN

Comments

acidburnNSAyesterday at 11:43 AM

Tangentially related, I recently had some hand-me-down high-end full tower speakers lose their integrated subwoofer amps. I bypassed them and wired in an external amp but people said the integrated DSP would be missing. That's when I learned about CamillaDSP [1] and CamillaFIR [2]. I got a calibrated UMIK-1 microphone and did a frequency sweep in the room. Then I applied the Camilla-computed FIR filter to my snapcast-sourced music stream on the Raspberry Pi 3 B I have networked into the living room. Now I have room-corrected and loudspeaker corrected fancy DSP and the speakers sound better than ever. Pretty fun, and very cheap. The Pi3 runs it using about 20% of its CPU. Not bad! I did the same process up in my office with some desk speakers and they sound great too (that time using EasyEffects to apply the filter in real-time rather than CamillaDSP).

[1] https://github.com/HEnquist/camilladsp

[2] https://github.com/VilhoValittu/CamillaFIR

show 3 replies
a96yesterday at 10:48 AM

Looks like output only and only one stereo pair from USB is processed to outputs, but a really cool project.

Also, for those watching for it: https://www.audiosciencereview.com/forum/index.php?threads/i...

> I can't take all of the credit. My little robot intern (Opus 4.5) has been very helpful with the busy work, leaving me free to handle the trickier planning and implementation. ;)

BoingBoomTschaklast Saturday at 1:28 PM

And here's the release thread for those of you wanting a bit more detail or to talk with the creator: https://www.audiosciencereview.com/forum/index.php?threads/i...

skybrianyesterday at 6:25 PM

This looks very cool.

Since a Raspberry Pi Pico doesn’t have built-in audio output ports, I think the main thing blocking ordinary people from using it is figuring out the hardware? A link to a tutorial for how to add audio output would be useful.

show 1 reply
alnwlsnyesterday at 9:00 PM

Neat! I've been using a Teensy 4 for some of these things recently. The Teensy Audio Library is pretty good, but even though open source is pretty well tied to the Teensy hardware.

a96today at 8:29 AM

Looks like there's a roadmap here. Potentially interesting things in the works.

https://github.com/WeebLabs/DSPi/blob/main/Documentation/Roa...

joenot443yesterday at 1:06 PM

This is awesome.

What are the odds a Raspberry Pi could keep up with BTrack?

https://github.com/adamstark/BTrack

show 1 reply
hexmilesyesterday at 12:28 PM

I wonder if you could do the same thing in reverse and have a cheap way to get multiple inputs. I would love a cheap way to add 8–16 inputs to my PC; all the audio interfaces I found cost quite a bit.

show 5 replies
dmitrygryesterday at 4:45 PM

Pretty cool, though the assembly could be tightened in a few hot loops, eg:

    mov r3, r10
    adds r5, r5, r3
    mov r9, r5
can be made into

    mov r9, r10
    add r9, r5
since r5 and r3 are both dead, and so are the flags
atmanactiveyesterday at 7:48 PM

Any chance of supporting 192kHz?

show 2 replies
abhiraj_patwayesterday at 5:26 PM

Can I use this to connect my electric guitar straight to my pc, or use this DSP for guitar effects?

show 2 replies
ameliusyesterday at 11:25 AM

Is there a guaranteed latency?

show 2 replies
roxolotlyesterday at 12:24 PM

I’ve been wanting to follow this tutorial for some time. I think this might make the whole thing way simpler and smaller if all I want is line in.

https://www.raspberrypi.com/news/upcycle-a-sonos-play1/

lysaceyesterday at 11:35 AM

Nice.

I wonder if 264/520 kB RAM is also enough for a high quality parametric stereo reverb/echo effect? Should fit about 3/6 seconds of uncompressed 16-bit 44.1/48 kHz audio.

Also: Raspberry Pi Ltd - please keep increasing the RAM size in future iterations to unlock even more use cases.

show 2 replies
phkahleryesterday at 2:02 PM

What would be the best way to have analog input and output?

show 1 reply
wiradikusumayesterday at 12:21 PM

I recently bought a Behringer U-phono UFO202 as a cheap DAC for my mini pc. Can this Pi thing replace it?

show 2 replies
marlburrowyesterday at 12:05 PM

[dead]