W4GPL
08-08-2010, 11:06 AM
The Pulseaudio Utils package is pretty poorly documented, anyone have much experience with parecord and paplay?
Though I have a reasonable work around, I'm mostly curious what I'm doing wrong..
Computer A (192.168.0.2): Fedora 13 - Pulseaudio (network enabled) -- Using microphone input on internal sound card to capture audio from HF radio.
Computer B (192.168.0.1): Fedora 13 - Pulseaudio
[jeff@jeff ~]$ parecord --server=192.168.0.2 --format=u8 --rate=8000 --channels=1|paplay
Failed to open audio file.
write() failed: Broken pipe
[jeff@jeff ~]$ parecord --server=192.168.0.2 --format=u8 --rate=8000 --channels=1|paplay --format=u8 --rate=8000 --channels=1
Failed to open audio file.
write() failed: Broken pipe
[jeff@jeff ~]$ parecord --server=192.168.0.2 --format=u8 --rate=8000 --channels=1|aplay
Playing raw data 'stdin' : Unsigned 8 bit, Rate 8000 Hz, Mono
The last one works. Now for various reasons, I want to pump this stream directly back out onto Computer B's speakers using entirely native Pulseaudio, rather than having to use Alsa's Pulse plugin.
I'm missing something with parecord/paplay -- should I be able to simply play the stream using paplay and not have to pipe the auto? I mostly want to be able to name the streams in the mixer and I can't do that when using Alsa's Pulse plugin.
Also, for what it's worth, when I and '-' to the end of 'paplay', I get the same results.
Though I have a reasonable work around, I'm mostly curious what I'm doing wrong..
Computer A (192.168.0.2): Fedora 13 - Pulseaudio (network enabled) -- Using microphone input on internal sound card to capture audio from HF radio.
Computer B (192.168.0.1): Fedora 13 - Pulseaudio
[jeff@jeff ~]$ parecord --server=192.168.0.2 --format=u8 --rate=8000 --channels=1|paplay
Failed to open audio file.
write() failed: Broken pipe
[jeff@jeff ~]$ parecord --server=192.168.0.2 --format=u8 --rate=8000 --channels=1|paplay --format=u8 --rate=8000 --channels=1
Failed to open audio file.
write() failed: Broken pipe
[jeff@jeff ~]$ parecord --server=192.168.0.2 --format=u8 --rate=8000 --channels=1|aplay
Playing raw data 'stdin' : Unsigned 8 bit, Rate 8000 Hz, Mono
The last one works. Now for various reasons, I want to pump this stream directly back out onto Computer B's speakers using entirely native Pulseaudio, rather than having to use Alsa's Pulse plugin.
I'm missing something with parecord/paplay -- should I be able to simply play the stream using paplay and not have to pipe the auto? I mostly want to be able to name the streams in the mixer and I can't do that when using Alsa's Pulse plugin.
Also, for what it's worth, when I and '-' to the end of 'paplay', I get the same results.