Hacker News new | past | comments | ask | show | jobs | submit

Fully Featured Audio DSP Firmware for the Raspberry Pi Pico

https://github.com/WeebLabs/DSPi
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

loading story #47931005
loading story #47929907
loading story #47920527
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. ;)

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

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

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.

loading story #47925406
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...
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.
This is awesome.

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

https://github.com/adamstark/BTrack

loading story #47921494
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.
loading story #47928003
loading story #47927962
loading story #47926125
loading story #47926057
loading story #47921036
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
Any chance of supporting 192kHz?
loading story #47929580
loading story #47927855
Can I use this to connect my electric guitar straight to my pc, or use this DSP for guitar effects?
loading story #47931046
loading story #47926308
Is there a guaranteed latency?
loading story #47922603
loading story #47920268
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/

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.

loading story #47921031
loading story #47924068
What would be the best way to have analog input and output?
loading story #47922483
I recently bought a Behringer U-phono UFO202 as a cheap DAC for my mini pc. Can this Pi thing replace it?
loading story #47921035
loading story #47920848