Implement api.output, announcevoice command, a bunch of other tts shit, etc etc etc buh
This commit is contained in:
@@ -5,7 +5,10 @@ module.exports=class extends BaseEngine {
|
||||
constructor() {
|
||||
super('ESpeak','wav')
|
||||
}
|
||||
async getSpeechFile(text, filepath, voice='en', params={}) {
|
||||
getDefaultVoice() {
|
||||
return 'en';
|
||||
}
|
||||
async getSpeechFile(text, filepath, voice=this.getDefaultVoice(), params={}) {
|
||||
let proc=await spawn('espeak', ['-v', voice, '-w',filepath, '--stdin']);
|
||||
proc.stdin.end(text);
|
||||
}
|
||||
|
Reference in New Issue
Block a user