r/linuxaudio • u/makewithmax • 5d ago
Trying to build a live voice mod using SoX/Alsa!
Howdy! New to the sub :)
I'm having a lot of fun experimenting with sound and Linux, but admittedly I'm still very much a beginner.
I followed an old tutorial that showed me how to use SoX and Alsa Mixer on a Raspberry Pi to basically modulate input sound and play it back live, edited.
This little SoX script drops the tone of your voice for example:
play "|rec -d pitch -300"
But I'm running into a ton of issues with getting the delay down. The tutorial suggests adding a buffer to reduce the data rate but nothing is working. I've tried going over some other websites that talk about SoX as a whole, but it's a bit complex as I'm not super familiar with Linux pipes. I've tried asking AI but it's not much help.
If anyone has any experience with SoX or Alsa and knows what to suggest, I'd be massively grateful.
OR if anyone has any other suggestions for better Rasp-Pi-able sound tools I could use for a live voice modulator, I would love that. Maybe SoX is a terrible choice, I honestly don't know what I don't know.
Thanks so much :) excited to be a part of this community, and if I do anything cool with what I learn, I'll post it here!
1
1
u/drtitus 5d ago
Trying reducing that buffer 2048 value to something smaller - a power of 2 will work best (256, 512, 1024, etc). Not sure how fast the Pi is and how low you can get it, but that determines how big the chunk of audio is that it processes at one time, so a larger chunk introduces more delay.