What I am doing right now is recording audio from my mic using arecord and piping the raw output to VLC like so:
arecord -r 8000 - | vlc -vvv -
It works great, except the audio that is coming out has a lot of noise. I know it is possible to clean up background noise using sox, but I can't seem to figure out the right commands. When I use "play" just to test output (without even attempting noise removal), the output sounds horrible using:
play -t raw -b 16 -c 1 -e signed -r 8000 -
Are there any other solutions other than sox/play? If I can do this via VLC itself, that would be ideal. I also need to amplify the sound as well, which is why I use VLC. If I can get sox to clean up the audio and the pipe the output back to VLC again, that would be amazing. How could I accomplish this, I am sure it's possible.
My goals are to (1) clean all the background noise and (2) amplify the audio as much as possible.