It looks like you've got the SSH part working now. I think the issue you're having now is the -D argument you're passing to arecord.
Run this command on the pi you're trying to record from to list the available devices:
You should see output like this:
Code: Select all
$ arecord -l
**** List of CAPTURE Hardware Devices ****
card 1: GoMic [Samson GoMic], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0
I think you take the card number (1 here) and the device number (0 here) for the arecord -D option. Based on my output above, I'm maknig this work with this command:
Code: Select all
arecord -D plughw:1,0 -f dat | ssh -C pi@raspberrypi aplay -D plughw:0,3 -f dat
Note that I also specified a device on the aplay side. You may need to determine your aplay device using the same method (inspect the output of aplay -l on the pi you're going to use to play).