Added Google TTS, lowercase voices so that people don't have to remember ridiculous case
This commit is contained in:
BIN
modules/.DS_Store
vendored
BIN
modules/.DS_Store
vendored
Binary file not shown.
@@ -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();
|
||||
|
@@ -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`);
|
||||
})
|
||||
}
|
Reference in New Issue
Block a user