Internet Radio broadcast

Your Own Internet Radio broadcast in a few steps…

Good solutions for internet radio broadcasting are the IDJC, Pulseaudio with Jack and accept calls from the audience using Skype .

First step, you need to install the jackd, skype, idjc. (pulseaudio is installed by default on the blackPanther system)

# installing jackit skype idjc \
libalsa-plugins-jack pulseaudio-module-jack
and optional for jack-ports management the
installing ftp://the/path/to/qjackctl-xxx.rpm

Next, we need to make a config file which makes pulse use JACK when the JACK server is running.

$ cp /etc/pulse/default.pa ~/.pulse/pulsejack.pa
$ mcedit ~/.pulse/pulsejack.pa

Now we edit this file, with the necessary changes in bold :

### Load audio drivers statically (it is probably better to not load
### these drivers manually, but instead use module-hal-detect –
### see below — for doing this automatically)

#load-module module-alsa-sink
#load-module module-alsa-source device=hw:1,0

#load-module module-oss device=”/dev/dsp” sink_name=output source_name=input
#load-module module-oss-mmap device=”/dev/dsp” sink_name=output source_name=input
#load-module module-null-sink
#load-module module-pipe-sink

load-module module-jack-source
load-module module-jack-sink

### Automatically load driver modules depending on the hardware available
#.ifexists module-hal-detect.so
#load-module module-hal-detect
#.else
### Alternatively use the static hardware detection module (for systems that
### lack HAL support)
#load-module module-detect
#.endif

Save and exit. Next we need to stop pulse from automatically starting again after we kill it.

echo “autospawn = no” > ~/.pulse/client.conf

Now launch Jack control (AKA Jack audio connection kit). Click the Setup button and the  Options tab.

Close the Jack control and start it again. If you start the server and open the connections window, you should see
a pulseaudio sink and source as available connections and will be linked to the system ins and outs through JACK.

Radio Broadcasting with IDJC  under blackPanther OS

Try starting up IDJC or any other JACK sound program, play some music and then play something else in SMPlayer or QMMP, they should play together.

NB: Not sure if this is just me, but I find that first time I start JACK I can’t hear anything.
It looks like Pulse has muted the soundcard because when I exit and pulse restarts it is muted.
If I turn up the volume and start JACK again everything works.

We can now pipe any sound pulse makes into IDJC via the connections window. For example,
if you want to use Skype to have a live call on your radio show, connect front-left and
front-right from the pulseaudio sink to the aux inputs on idjc-mx. Now if you click the aux
button in IDJC, all the sound from pulse, including Skype, will be heard on the stream.
IDJC has fancy voip mixing too but I haven’t played with it yet and it might be easier
to just have them as aux. Your microphone should already be linked to the pulseaudio input
so Skype can hear you, but if you want it to hear the music from the DJ Console, you need
to link the outputs of IDJC into the pulse source.

Okay, I rambled a bit at the end, still playing with the setup here. Drawbacks are that you can’t
link individual sources from pulse, so make sure you turn off your system sounds and don’t
browse youtube when doing a voip call. With Skype maybe open-sourcing their interface,
someone might make a client with JACK support but until then, this will have to do. On the
positive side, you can play sound from youtube or anything else from your desktop without
having to mess up your playlist.

About the Author

2 thoughts on “Internet Radio broadcast

  1. I was just browsing for relevant blog posts for my project research and I happened to discover yours. Very helpful post. Very clear commentary and suggested phrasing are most impressive, as are his and your generosity in sharing this explanation and example.

  2. Really fantastic post. Theoretically I could write something like this too, but taking the time and effort to make a good article is a lot of effort…but what can I say….I’m a procrastinater. Good read though.

Comments are closed.

You may also like these