Fixed crash with announcer

This commit is contained in:
2021-07-03 22:51:19 +02:00
parent 57d37a7b0b
commit ee88a48fa5
3 changed files with 4 additions and 2 deletions

View File

@@ -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();