module.exports = function(RED) {
	function  PlayAudioNode(config) {
		RED.nodes.createNode(this,config);
		var node = this;
		this.on('input', function(msg) {
			RED.comms.publish("playaudio", msg.payload);
		});
	}
	RED.nodes.registerType("play audio", PlayAudioNode);
}


@@ -152,16 +152,54 @@
 (msg) %7B%0A
+%09%09%09if(Buffer.isBuffer(msg.payload))%7B%0A%09
 %09%09%09RED.c
@@ -238,16 +238,21 @@
 yload);%0A
+%09%09%09%7D%0A
 %09%09%7D);%0A%09%7D

Make sure input data is a buffer