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