Running pulseaudio. I have an audio device delivering music to my sound card line-in. Pavucontrol confirms the signal strength. Now how do I play it? Preferably from the command line. Aplay only seems to work with files.
Thanks for any advice.
Running pulseaudio. I have an audio device delivering music to my sound card line-in. Pavucontrol confirms the signal strength. Now how do I play it? Preferably from the command line. Aplay only seems to work with files.
Thanks for any advice.
When I play via software, VLC, Mplayer the output goes to my amplified speakers. So I know the sound card works.
Try the following
pactl load-module module-loopback latency_msec=1
*The latency value can be changed to suit if necessary.
Then use pavucontrol to select the appropriate loopback device in the Recording tab. In the Playback tab change the output of the loopback module to the sound sink where you would like to hear your stream.
Some similar threads…
https://thelinuxexperiment.com/pulseaudio-monitoring-your-line-in-interface/
https://unix.stackexchange.com/questions/263274/pipe-mix-line-in-to-output-in-pulseaudio
BTW, this will show loaded modules and available sources and sinks…
pactl list | grep "Name"
From that you could do something like
pactl load-module module-loopback latency_msec=1 source=<source> sink=<sink>
*Specify desired source and sink to route the audio as required.
When finished, the looback module can be unloaded with…
pactl unload-module module-loopback
Yes it works! Thank you very much. You’ve ended hours of internet searches.
Good result. Enjoy.