Send audio source from one Pi to another over the same network.
Both Pi's will have a static IP and will be locked onto each other.
I've attached a diagram for reference.
Thank You guys in advance!
Possibly the simplest way is to use sox:
Install sox on both Pis:
apt-get install sox
Lets assume the Pi with the audio source is 198.51.100.2, and the Pi attached to the amplifier is 198.51.100.3
On the source pi (198.51.100.2), make sure you can run ssh without needing a password:
That's all the set-up done. Now to actually do the record/playing:
rec -c 1 -t wav - | ssh 198.51.100.3 play -
How does this work?
The rec command records audio from the default input device (which will be fine unless you have more than one). The audio is then sent down a unix pipe to the ssh command, which sends it over the network to the other Pi and executes the play command.
The -c 1 argument to the rec command says to record only one channel; if you want stereo then use -c 2.
(Note the IP addresses used are from RFC5737 and are for documentation only).