Fixed crash with announcer
parent
57d37a7b0b
commit
ee88a48fa5
|
@ -25,7 +25,8 @@ module.exports = function (bot, api) {
|
|||
} else {
|
||||
str = printf(api.strings.USER_JOINED, username);
|
||||
}
|
||||
const filepath = await api.generateVoice(str, api.announcementEngine, api.announcementVoice);
|
||||
api.queue.add(__dirname + "/sysmsg.wav");
|
||||
api.queue.add(channel, str);
|
||||
api.queue.add(filepath);
|
||||
})
|
||||
}
|
||||
|
|
|
@ -1895,6 +1895,7 @@
|
|||
"hasInstallScript": true,
|
||||
"dependencies": {
|
||||
"node-addon-api": "^3.0.0",
|
||||
"node-gyp": "3.x",
|
||||
"node-pre-gyp": "^0.11.0"
|
||||
},
|
||||
"optionalDependencies": {
|
||||
|
|
|
@ -8,7 +8,7 @@ module.exports = class extends BaseEngine {
|
|||
super('sam', 'Software Automatic Mouth', 'wav')
|
||||
}
|
||||
getDefaultVoice() {
|
||||
return 'en';
|
||||
return 'sam';
|
||||
}
|
||||
async getSpeechFile(text, filepath, voice = this.getDefaultVoice(), params = {}) {
|
||||
let sam = new Sam();
|
||||
|
|
Loading…
Reference in New Issue