Fix ESpeak to use Stdin instead of a shell argument

This commit is contained in:
2021-04-06 12:46:11 +02:00
parent a4ccdf43cb
commit 0fd431d2bc
2 changed files with 3 additions and 2 deletions

View File

@@ -5,6 +5,6 @@ module.exports = function(bot, api) {
const channel = await bot.channels.fetch(process.env.CHANNEL);
await api.joinChannel(channel);
api.speak(channel, `Hi! I'm alive. It is now ${new Date().toLocaleTimeString()} on ${new Date().toLocaleDateString()}`,api.ttsEngines.watson);
api.speak(channel, `Hi! I'm alive. It is now ${new Date().toLocaleTimeString()} on ${new Date().toLocaleDateString()}`,api.ttsEngines.espeak, "en");
})
}