Latest autopo.st updates

Lots has been happening at autopo.st HQ recently! I’ve been busy helping the guys at autopo.st with the development on a load of new services including :

I’ve been involved in helping with the coding and programming of the backend and front end services that the autopo.st platform is built on, mainly using HTML and PHP programming skills.

 

And so autopo.st is born…

Post to Twitter, Facebook and TuneIn

What started as a small project for a couple of my own radio stations has turned out to be a bit of a success!

“Wouldn’t it be great if I could get the name of the songs that were playing on the radio station onto Twitter so that followers could see what was being played” I thought…

So after a but of research and armed with my knowledge of PHP off I set.

Getting the names of the songs to appear on Twitter was relatively easy. A bit of PHP coding, some BASH scripting and off you go… Easy!

Then came the “Wouldn’t it be cool of you could post an image of the artist that was playing?” challenge! I remember it well… That added quite a bit more complication to how it all worked. Challenge accepted!

“How about if you could tag the artist that was being played? That would be cool!” was the next one. Again, all possible, the data is out there.

By this time a few radio stations have found out about the service and are actually paying to use the system. Time to start advertising this! Along came www.twitterautopost.co.uk. The website ( a .co.uk because they are cheaper to purchase) advertised the service to see if there was any real interest in the service. Turns out, YES! there was an interest, quite a big one!

The issue now is that people are (obviously) wanting to change details and configuration (the message to be posted, the frequency, whether to post images or not, etc…). Cue a MAJOR rethink of how all this is going to work. Time to design a Control Panel!

So as I had coded and written most of this myself, I decided to go ahead and see if I would write up and code a customer control panel myself… Yes as it turns out! This was a very big change to how the whole system worked. There were already a number of stations using the service, so this all had to be rolled out without causing any disruption to the existing users so along cam the painful moving of each account form the ‘manual’ system to the new ‘2.0’ system whereby users could log into their own account and make the changes themselves in realtime.

Stay tuned for the next update to bring us right up to date with where the project is now!

Setting up a radio station?

So, setting up a radio station, huh?

There are a few options for you to consider regarding setting up an online radio station, firstly how are you going to use it? Will it be just to play music, like a jukebox? Will you be playing mostly music and a small number of live shows? Will it be mostly live shows?

The answers to these questions will determine the best route to take when setting up your own radio station.

Now, just to confuse you, let’s start at the end!

Regardless of how you actually broadcast (live, recorded, voicetracking, just music, etc) you will always need a streaming server. This is what sends your content to all your listeners. Without going into a huge amount of technical detail, you create your content, whether it be a live show or just music and you create this content only once and send it to your streaming server and then the server sends it on to your listeners. You would need a ton of Internet bandwidth and processing power to do this yourself, that’s why streaming servers exist.

Hang on! Can I not do that myself? Well, no… You will create one stream of music and this needs to be distributed to all of your listeners. It is highly unlikely that your home/office internet connection will be able to cope with this. This is why you create one stream of music and then send it on to your streaming server to serve to your listeners as and when they want to tune in.

So, to get started, you will definitely need a streaming server. We’ll narrow your choices down to just three things to consider.

Which type? The first thing to consider is what ‘type’ of streaming server will you be using. There are. In my opinion, two main types, Shoutcast and Icecast. While there are some differences, their job is the same, to get your broadcast to your listeners. Personally I prefer Shoutcast but that could simply be because I have had more exposure to using it, both work perfectly well. The user panel is slightly different as is the way you connect to the server, but they both perform the same task

How many listeners? The second thing to consider is how many listener slots you need. This part of the decision making has always proved to be slightly confusing. When choosing a streaming server, you will nearly always be asked ‘how many listener slots’ you want. What this means is that you have to decide how many listeners you want to be able to handle at any one time. It doesn’t refer to daily or monthly limits, only how many simultaneous listeners you can serve at any given moment. The reason this is relevant and nearly always asked is because streaming server hosts pay for bandwidth and depending on how much bandwidth they need, they pay more. They also need to reserve this bandwidth for you so that if you get a surge of listeners, then can cope with it. Unfortunately it is quite common for stream hosts to ‘oversell’ their bandwidth in a hope that not everyone will use their maximum slots at any given time. Beware of streaming server hosts offering ‘unlimited slots’ this is very misleading! Not only do you ‘have’ to specify a maximum number of listeners for your server, no streaming company could be able to honour this offer if all of a sudden your station became globally famous and you had thousands of listeners tuning it.

Another common problem here is that some streaming companies charge for bandwidth usage. In my opinion, beware of this. Unless you are a mathematical wizard, you really don’t want to be worried about how much bandwidth on a daily basis, what you really want is to be able to broadcast your radio station without any nasty surprises in case you go over the bandwidth you use. Just go for a ‘maximum slot’ monthly option and don’t worry about how much bandwidth you use.

So, your best option here is to start small, get the station launched, make sure your streaming server provider is happy to grow with you as you need more slots (some stream hosts do not allow these changes). I’d say a reasonable amount of slots to get started with is 50 or 100 and see how it goes from there. You’ll be able to monitor the statistics via your control panel so you can see if you are reaching your maximum listener slots at any time and simply upgrade when you do. Again, this does not mean that you’ll only be able to have 50 or 100 listeners per month, it just means that at any one time you can only allow this many listeners to tune in.

Quality? The final consideration for your streaming server is the actual level of quality of the stream. This will depend on what you are going to broadcast, will it be voice only (talk radio), will it be a combination of both, or will you be looking to stream high quality music content? In basic terms, the higher the quality you want, the more bandwidth you need. This is where, on purchasing a streaming server, you will probably be asked how many ‘kbps’ you require, or they will be marked as ‘maximum kbps’.

Breaking this down, generally you have three options. Talk Radio (speech only) is typically 48-64kbps, speech and music is typically 128kbps and high quality audio is 192kbps. Please note I say ‘typically’! You can get decent speech down to 24kbps and you can get decent music content in 64kbps, but these have been seen to be the standard choices.

We could go on to discuss a newer type of stream (AAC+) which is being used to serve content to mobile devices and allows you to better serve content to mobile devices, but this could confuse matters even more!

So, your three choices : Server type (Shoutcast or Icecast), Maximum listener slots and audio quality. The standard starter pack is typically a Shoutcast server with 100 slots at 128kbps. This is more than enough to get you started.

OK, back to the beginning!

If you will only be playing your own selection of music in a jukebox style station, then you probably have two options, either use a feature called AutoDJ which allows you to upload all your songs to your streaming server and play them from there, this means that you do not need a computer dedicated to playing your music or connected to your internet using up bandwidth, you do all the administration online via your control panel and make any changes there. The advantages of this option are that you don’t need to be permanently connected to the internet (using bandwidth), you don’t need a dedicated PC and you don’t run the risk of your station being down if your PC crashes or your home/office internet line being down. The disadvantages are that you have to pay for storage space on the server which will limit the amount of songs you can store. Another consideration is the limited amount of configuration and scheduling you can make.

Another option is to do the same thing, but from your own computer. The advantage here is that you are not paying for storage space on your streaming server (hard drives are relatively cheap these days), you can choose your own playout software and make as many configuration changes you want. The downside is that you need a dedicated PC and a decent internet connection.

So, what about if you want to host your own live shows every now and then?
Well, actually, the above two options are still valid. AutoDJ allows live connections to the server whenever you want and if you host on your own PC, then you can simply hook up a mic and you’re away. Again, both options are valid.
The main differences here are that if you want to connect up to your own AutoDJ server, you will still need another PC to send the stream to it, in fact depending on how well you want to do it, you will need an audio source (another PC with all your music on, CD players, Turntables or any other source of music) and of course you will need your own microphone, it is more than likely that you will need some kind of small mixing desk to hook all these up to and then into your encoding PC and then off to your streaming server or AutoDJ.

This is somewhere in between the options of having a mainly live radio station. You move away from the AutoDJ system and more towards having the station content generated from where the studio is going to be located.

AutoDJ does, however, prove very useful if you want to have a station whereby you have a number of remote DJs and no physical studio location. Each DJ would be allowed to broadcast on your station at their allocated slot time and connect and disconnect via a set of rules and a username and password. When no DJ connects to the server, your AutoDJ takes over and simply plays music.

Another option is where you want a more professional approach to your station and have a physical studio located somewhere (your studio, office or home studio). This would typically comprise of a decent microphone, a small mixing desk, an audio source (CD players, turntables, PC with a database of music, etc) and finally a PC which would encode your music content and send it off to your streaming server.
Quite how complex this set up is greatly depends on your requirements. You could have 3 or 4 microphones for talk radio and guests, a number of CD players, some turntables if you’re playing vinyl or a laptop with your favourite MP3’s stored on it. Your mixing desk could be analogue or digital with a number of inputs. When choosing your missing desk, always try and think how your setup may grow and buy one with enough inputs but while sticking to your budget.

So, we’ve covered streaming servers and your studio setup, but we still haven’t covered how to actually get your live show delivered to your streaming server.
If you will only be playing music from your server via AutoDJ, then all your music is already on your server so you do not really need to worry about this part as it doesn’t apply, but if you will be producing your live shows or sending music to your server from your studio then you need a way of getting it there.
If you are just sending music from your PC to your streaming server then you can do this from the same PC and depending on what software you are using to play the music it may have a built in encoder.
If you have a small studio with a mixer, then you will need to take the output from your mixer into your encoding PC (line input) and set up some encoding software on the PC which will then send your audio to your streaming server. Essentially it takes analogue audio and coverts it into data to send over the internet to your streaming server.
There are a few options for you here, you could use Winamps DSP (free) which allows you to connect up to your streaming server or a more professional approach and use RadioBoss’s ‘Caster’ which give you many more options.

Whichever approach you use to get your audio from your studio to your streaming server, you’ll be needing some important details, which are the IP or hostname of your server and the port number you have been allocated. You will also need to specify whether or not you’ll be using MP3 or AAC encoding and also the bitrate (audio quality) you will be using, this will have been decided when you chose a streaming server. All you need to do is enter these details into your encoder and hit connect and you’ll be streaming to your server!
It is important to remember that if you do broadcast from your studio, office or home studio, that your encoding PC will have to be left on permanently and connected to the internet using bandwidth. This is a consideration if you have capped bandwidth on your broadband plan as audio streaming uses a lot of bandwidth! It will probably help if you shop around on usave and find the best solution out there. Bandwidth is a funny thing that costs more or less depending on which country you are in.

So, what have we learned?

Well, you need to decide what type of Radio Station you want to set up first and plan it out, are you just going to play music, will you be doing the occasional show, will you have remote presenters or DJ’s, will you have a physical studio somewhere, how will you get the audio to the streaming server and what type of server will you be using, how many listeners slots and what audio quality?

Contact us if you need help choosing your best options and if you’d like to discuss how to set up your radio station.

Streaming server providers : Radio ServicesEasyweb Communications

TuneIn Auto Post

 

 

 

TuneIn is HUGE!

There are hundreds of thousands of radio stations broadcasting on TuneIn. Everyone that has a radio station uses TuneIn as a platform to broadcast to the masses, mainly to mobile and tablet devices. Everyone competing for listeners.

TuneIn have released their API and now allow you to send the song that your radio station is playing to them via this API. Previously they would only update the song you were playing once you had tuned in. Now, you can send them the song you are currently playing and they will show your station if a listener makes a search for that particular song.

So, I came up with a way to automatically post your Radio Stations ‘Now Playing’ song directly to TuneIn! Let your potential listeners search for their favourite song and it could be playing on YOUR radio station!

The TuneIn Auto Post service can automatically grab the song that is currently playing on your radio station and send it to TuneIn so that it appears on the TuneIn Radio Directory!

This is a MUST for every radio station that takes attracting listeners seriously.

The system is compatible with Shoutcast (v1 or v2), Icecast or Radionomy. If you are already on TuneIn then we can get your current ‘Now Playing song sent to TuneIn to be displayed. This is a great marketing tool and will help you grow your station quickly.

All we need is your Shoutcast (v1 or v2), Icecast or Radionomy stream details and your TuneIn API details (see this page) and then just sign up and we’ll have your songs automatically posted to TuneIn!

So, if you are interested in getting this for your radio station, take a look at this page.

Update : Twitter Auto Post

Time for an update on the Twitter Auto Post project!

Last year I started work on a service that allows Radio Stations to automatically post their “Now Playing” songs to Twitter.

It’s been very busy with this project as more and more requests came in for additional features and now this is where we are with this project with regards to features and functionality.

– Compatible with Shoutcast (v1/v2), Icecast & Radionomy.
– Compatible with most playout & automation systems.
– Customisable messages including hashtags
– Customisable posting frequency
– Dynamically replace the artist/band/group name with their official Twitter account.
– Add the artists/groups/bands image to each Tweet.
– Add a “Buy this Song” link to each Tweet.

The feedback from users of this service has been excellent as many radio stations have seen a huge increase in followers, retweets (sometimes by the artist themselves) and many favourited tweets. There was one tweet that got retweeted to over 170.000 followers.

There’s more information about the service over at www.twitterautopost.co.uk or if you are interested then just drop me an email here.

Shoutcast Server Monitoring Scripts

If you have ever been involved in online radio, the likelyhood is that you will have (and probably still are!) using Shoutcast or Icecast servers to stream your live audio to the masses. Shoutcast and Icecast are, after all, THE preferred and most widely used streaming platform out there.

After a few questions regarding monitoring the status of Shoutcast or Icecast servers, I decided to look into what can be done to keep your eye on your server and monitor its status.

After discussing with a few radio station operators, a solution was introduced which would give the following features:

– Notification by email and/or SMS text message on status change (online/offline).
– Monitoring of Shoutcast server status (Server online).
– Monitoring of audio source (Server online, but no source connected).

These features allow for one (or more) people to be notified if the actual Shoutcast or Icecast server is down, but also alerts the station if the audio playout system goes down, so the server is online, but there is no audio source connected (plyout or DJ failure). Either of these occurences will mean that listeners will get no audio if they try and tune in.

Both services (server and playout) are monitored by a remote server (not the same as which either the Shoutcast or Icecast server OR the playout are on) at a preset interval (every 5 minutes by default) and if the status of the server or playout changes, an email and or SMS text message will be sent out to the intended recipients to inform them of the situation.

If and when the status recovers (server comes back online and/or the audio source is reconnected) a further notification is send out via the same methed (email and/or SMS text) to inform that the fault situation has cleared.

There is more information about this work here.

myradiojukebox.com – Your Internet Radio Jukebox!

In this project I managed to incorporate nearly all of my favourite techie things into one! Music, radio, web programming and audio streaming… They all come together in this project, myradiojukebox.com

The front-end is a website designed in PHP which hooks up to a back-end playout and streaming system.

The idea is that the user can access the website and search through a catalogue of music and seamlessly make requests via the front-end part of the website. The search facility queries a MySQL database held on the server, if the song exists, the info is relayed back to the playout system running on the same server and the song is put into a queue to be played in the next available slot. While there are no requests, the system just plays music randomly until a request is made.

The front-end website also queries an external database to gather the artists images and bio and an Amazon ‘Buy this song’ link and dynamically inserts them into the site.

The playout system simultaneously streams to three streaming servers, a 128kbps MP3 stream for the desktop/broadband browsers and listeners and also to two AAC streams for mobile users (24kbps and 48kbps) which are listed on TuneIn.

All requests are sent to the websites Facebook and Twitter accounts so that users can share their requests and it also includes a periodic Facebook and Twitter automatic update with what is currently playing.

Fancy trying it out? Visit myradiojukebox.com
and request your own song!

Next for this project is a voting system for users to vote up or down songs they hear and a login system to store their favourite songs.

Automatically post ‘Now Playing’ song to your radio station Twitter account

Fancy automatically posting what is currently playing on your radio station directly to Twitter as often as you want?

I’ve come up with a way to make your ‘Now Playing’ song to automatically be posted to your Twitter account with no intervention on your part at all. Get the song currently playing sent to Twitter every 5 minutes or every 5 days, it’s up to you!

 

A new addition to this project is that my script can now also add the official Twitter account/handle to each tweet and also an image of the artist/group.

How does it work?

Well, first we need to create an App in Twitter for your account, then with these details I create a script that will run on a server that gets called every ‘x’ minutes and updates your Twitter account automatically with the Artist name and song title plus a message or your choice.

Here are a couple of screenshots of it in action
twitter auto post

What do I need to make it work for you?

– Either access to your Twitter account OR you create an App and send me the required details (Token details from the App)
– Access to your ‘Now Playing’ details, your playout system will normally output this.
– How often you want the song details sent to your Twitter account and the message you want to include.

That’s it!
I just need those bits to make it all work, the script I have will do all the rest! If you don’t know how to get them, let me know and I’ll assist.

As this script relies on server usage on an ongoing basis, there is a very small charge (£2.95/month) to help me pay for hosting the script and bandwidth used to process the script.

Just click the Paypal icon below and you’ll get the details back on how to get the info I need, failing that, I’ll help you sort it all out until it’s working!