<commit_before>module.exports = function(RED) {
	function  PlayAudioNode(config) {
		RED.nodes.createNode(this,config);
		var node = this;
		this.on('input', function(msg) {
			if(Buffer.isBuffer(msg.payload)){
				RED.comms.publish("playaudio", msg.payload);
			}
		});
	}
	RED.nodes.registerType("play audio", PlayAudioNode);
}<commit_msg>Add TTS ability<commit_after>module.exports = function(RED) {
    function PlayAudioNode(config) {
        RED.nodes.createNode(this,config);
        var node = this;
        this.on('input', function(msg) {
            if (Buffer.isBuffer(msg.payload)) {
                RED.comms.publish("playaudio", msg.payload);
            }
            else if (typeof msg.payload === "string") {
                RED.comms.publish("playtts", msg.payload);
            }
        });
    }
    RED.nodes.registerType("play audio", PlayAudioNode);
}
{'fraction_non_alphanumeric': 0.1516533637400228, 'fraction_numerical': 0.0, 'mean_word_length': 2.7361702127659573, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '709759', 'n_tokens_mistral': 289, 'n_tokens_neox': 270, 'n_words': 42}