Fix typo in sam require

master
Talon 2021-07-03 17:11:28 +02:00
parent 43d7f60a7a
commit 57d37a7b0b
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ module.exports = class extends BaseEngine {
return 'en'; return 'en';
} }
async getSpeechFile(text, filepath, voice = this.getDefaultVoice(), params = {}) { async getSpeechFile(text, filepath, voice = this.getDefaultVoice(), params = {}) {
let sam = new samjs(); let sam = new Sam();
const buf = sam.buf8(text); const buf = sam.buf8(text);
const file = new wavefile.WaveFile(); const file = new wavefile.WaveFile();
file.fromScratch(1, 22050, 8, buf); file.fromScratch(1, 22050, 8, buf);