TTS机器人消息重叠

时间:2018-06-06 07:01:39

标签: javascript bots text-to-speech messages twitch

我创造了一个tts机器人用于抽搐效果很好,但是每当任何消息靠近在一起时,它会试图同时说出它们,它只会变成噪音。有人知道如何解决这个问题吗?

var tmi = require('tmi.js');
var say = require('say');

//BOT CONNECTION OPTIONS
var options = {
    options: {
        debug: false
    },
    connection: {
        cluster: "as",
        reconnect: true
    },
    identity: {
        username: "",
        password: ""
    },
    channels: [""]
};

var client = new tmi.client(options);
client.connect(); 

client.on("chat", function (channel, userstate, message, self) {
    say.speak(userstate.username + " says " + message);
});

0 个答案:

没有答案