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!
Raspberry Pi Stack Exchange is a question and answer site for users and developers of hardware and software for Raspberry Pi. It only takes a minute to sign up.Sign up to join this community
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).
Thank you for your interest in this question.
Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?