Fix typo in sam require
parent
43d7f60a7a
commit
57d37a7b0b
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue