Added Google TTS, lowercase voices so that people don't have to remember ridiculous case

This commit is contained in:
2021-04-10 23:45:02 +02:00
parent 40e50b6546
commit f0c71d75dc
10 changed files with 927 additions and 11 deletions

BIN
modules/.DS_Store vendored

Binary file not shown.

View File

@@ -23,8 +23,8 @@ module.exports = async (bot, api) => {
}
if (api.ttsEngines[args[1]]) {
userEngine = args[1];
if (api.ttsEngines[userEngine].validateVoice(args[2])) {
userVoice = args[2];
if (api.ttsEngines[userEngine].validateVoice(args[2].toLowerCase())) {
userVoice = args[2].toLowerCase();
api.respond(message, "Your voice is now " + userVoice + " from " + api.ttsEngines[userEngine].longName);
} else {
userVoice = api.ttsEngines[userEngine].getDefaultVoice();

View File

@@ -8,6 +8,6 @@ module.exports = function (bot, api) {
await api.joinChannel(channel);
let conn=api.getConnectionForVoiceChannel(channel);
api.queue=new AudioQueue(conn);
api.speak(channel, `Hey buddies! How does it feel like to be a buddy? Are you proud of being a buddy? Well that's great!'`);
api.speak(channel, `Running`);
})
}