I've been trying to get my Pi to play back audio from the microphone directly through a powered speaker connected to the onboard audio output in order to add effects such as a vocoder to it, but I've been semi-unsuccessful so far. My intent is to use JACK with a vocoder to replicate a Geth voice effect in real time, but I'm a complete noob at everything audio in linux >.=.>
The microphone I'm using is a Logitech USB headset, connected along with a nano WiFi plug to the Pi. I'm planning on buying a throwaway USB sound card for both output and input later.
Using this command, I can get the sound through but with roughly 1-2 seconds of delay.
My Pi is overclocked to 1 gHz and doesn't run any desktop environment, so computing power shouldn't be an issue. I assume there's a better program for doing this out there, but my googling skills have failed me so far. If anyone here could offer some input and/or suggestions, I'd be very grateful.
Code: Select all
arecord -fS32_LE -r 22050 -Dplughw:1,0 - | aplay -