Playing with Azuracast #ds106radio

One of the things keeping me sane in this madness has been noodling about on #ds106radio, most usually with Tannis Morgan and Maren Deepwell. With the recent upgrade to the server infrastructure to use Azuracast, Jim offered me the opportunity to kick the tyres a little bit and stupidly gave me a superadmin account. In return I offered to write up a little of what I played with.

First things first, the new exciting feature that Azuracast brings is METADATA! It’s now possible to feed metadata in as part of the broadcast stream and have it displayed.

ds106 radio player with metadata "Jim is talking" showing

I use Audio Hijack to broadcast and updating the Broadcast block there to feed in metadata is as easy as 1-2-3.

  1. Click the Broadcast block and choose the Metadata tab.
  2. Track Title and Artist are already setup as the default metadata to pass.
  3. Choose your music source of choice (in my case Spotify, but you might be using Mixxx or Apple Music).

I filled in the Station Info too because I’m a bit of a completer, but I’m not sure that’s really necessary.

One thing I have noticed is that whatever metadata has made it to the Broadcast block will make it to Azuracast, so unless you want the metadata for the last thing you were listening to feeding into Azuracast, you should queue up your opening track before going on air, or switch the metadata source on once you’re online and ready to play the first track (if you want it to be a surprise). It maybe seems like a minor thing, but now that Jim and Tim have got the @ds106radio Twitter account working it means that sucker is going to get tweeted out as well as appear briefly on screen in the player.

This is perhaps more important to consider for the future if we get to a place where playlists could be autogenerated. Or if you’ve got a nasty little Bay City Rollers habit you’re trying to keep quiet.

The other change that has come with Azuracast is the ability to have our own DJ accounts. Jim documented setting up a Streamer/DJ account in his blog post. I’ve set myself up my own account and now connect using that. Making that work is just a straight replacement of the username / password I use to connect with in the Broadcast block in Audio Hijack.

The immediate impact is that the web player will also display your DJ username as well as metadata.

Tim Owens has also set up the @ds106radio account to use the username of the streamer/DJ account if it’s not the default one, which is kind of cool for alerting when people come online.

Other things I can get to with my SuperAdmin powers are some of the reports. For example I can see who’s listening and where:

This report has a whole list of IP addresses for listeners, so whilst it would be cool to share it more widely, that’s data that will have to be treated quite carefully (‘cos that’s PII dontchaknow).

Azuracast also keeps a log of all the music being streamed in, based on the metadata provided I assume. I’m not so interested in seeing things like a listener count per song, but this is where some of how Azuracast is designed starts to become visible. Whilst the ability to connect in and stream from an external source allows things to stay as freeform as one wants, the core management software has a number of features which are geared towards more playlist oriented radio. That becomes even more visible when you start looking into how it handles mp3 files that get uploaded, but that’s another post.

What is interesting to me is that somewhere behind this is a database of all this info, but I’m struggling to find APIs that make it accessible. What is immediately accessible is the Now Playing API however. For ds106radio it’s at https://ds106rad.io/api/nowplaying

Amongst many things in there is the current listener count. It would be cool to update the public player page to embed that somehow.

"listeners":{"current":7,"unique":7,"total":7},"live":

I’ve got a bunch more thoughts about how the Now Playing API could be used too, but that’s also probably another blog post. Next stops are to play around with the WebDJ functionality, and also the auto scheduler. This is fun!

5 thoughts on “Playing with Azuracast #ds106radio

  1. This is awesome, and I do think I can update the embedded player to display a listener count. Right now it is just the default embed code, but gonna see if I can’t pull that data in sometime today or tomorrow. It’s also to see you playing with this, and blog posts like this will make it that much more accessible for anyone to jump in, which would be awesome. I think I also need to play with the Live DJ feature today given @scottlo suggested it might be having issues. This is good work, all of which I want to do, and having a community to do it with makes all the difference. Avanti!

  2. Hi, sounds like you’re well-versed in the Azuracast platform. I’m a real newbie, and I’m trying to chase down any answers to a question: can a playlist streamed on Azuracast be audio-recorded? I’m a guest DJ — not a Streamer DJ, because I have admin permissions to our station — that has a weekly program uploaded as a playlist. I would like to record and archive the program. Is that possible? Thanks.

    Much appreciated about the knowledge and blog up here about the software, it’s very helpful, too! Thanks.

    1. Hi Eric – I’m afraid I don’t know whether Azuracast will record an uploaded program – probably not because the assumption is that you already have most of the recordings being used? I do know that if you have something like Audio Hijack, you could record the broadcast on your local computer if you can play it via a web browser. Hope that helps and good luck!

Leave a Reply to Jim Groom Cancel reply

Your email address will not be published. Required fields are marked *