fuck
This commit is contained in:
11
tts/espeak/index.js
Normal file
11
tts/espeak/index.js
Normal file
@@ -0,0 +1,11 @@
|
||||
const BaseEngine=require('../BaseEngine')
|
||||
const {spawn} = require('child_process')
|
||||
|
||||
module.exports=class extends BaseEngine {
|
||||
constructor() {
|
||||
super('ESpeak','wav')
|
||||
}
|
||||
async getSpeechFile(text, filepath, voice='en', params={}) {
|
||||
await spawn('espeak', ['-v', voice, '-w',filepath, text]);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user