To do this, you need to create an ALSA loopback device. I spent a lot of
time researching this, and am still not sure I understand. Part of the
problem is that there is more than one way to do it. What are you using to
output the audio to ALSA? If you can select the output device, then it is
a little easier. I wanted to capture the output from Chrome, so it was
more difficult.
Here is the .asoundrc that I used to capture the output from Chrome and
direct it to a file. You should be able to do something like this, and
pipe it over to Liquidsoap.
pcm.teemp3 {
type file
format "raw"
slave.pcm "hw:0,0"
file '|/usr/bin/lame -S -r -s 44100 --bitwidth %b -m m -
/home/madlibs/madl$
}
pcm.teeraw {
type empty
slave.pcm "tee:null,'/home/madlibs/rawout.raw',raw"
# 48000 S16_LE 2ch (aplay -t raw -f dat)
}
pcm.teewav {
type empty
slave.pcm "tee:null,'/home/madlibs/wavout.wav',wav"
}
pcm.!default {
type empty
slave.pcm "teemp3"
}
Here is where I found my example:
https://manual.audacityteam.org/man/tutorial_recording_computer_playback_on_linux.html
Please post your progress if you can. It would be nice to include it in
the documentation when we figure this out.
Nick
On Thu, Aug 30, 2018 at 12:41 AM anitta-paul <notificati...@github.com>
wrote:
> I am trying to implement it in LINUX OS. I used ALSA sound sound system.
> But it took the input from the recording device connected to the system and
> broadcasted it. What I want is to broadcast the audio that is being played
> in the system.
>
> input.alsa()
>
> —
> You are receiving this because you commented.
> Reply to this email directly, view it on GitHub
> <https://github.com/savonet/liquidsoap/issues/618#issuecomment-417187801>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/Am23y_UoX0odfLLwJW9u5F5JE3hraEZYks5uV2zbgaJpZM4WR8sV>
> .
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Savonet-users mailing list
> Savonet-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/savonet-users
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Savonet-users mailing list
Savonet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/savonet-users