Implement api.output, announcevoice command, a bunch of other tts shit, etc etc etc buh
This commit is contained in:
@@ -5,7 +5,12 @@ module.exports=class {
|
||||
this.longName=longName;
|
||||
this.fileExtension=fileExtension;
|
||||
}
|
||||
async getSpeech(text, voice, params) {}
|
||||
getInternalVoiceName(str) {
|
||||
return this.voices?this.voices[str]:str;
|
||||
}
|
||||
getDefaultVoice() {}
|
||||
validateVoice(voice) {return this.voices ? this.voices[voice] : true;}
|
||||
async getSpeech(text, voice=this.getDefaultVoice(), params) {}
|
||||
async getSpeechFile(text, filepath, voice, params) {
|
||||
const data = await this.getSpeech(text, voice, params);
|
||||
const contents = await data.arrayBuffer();
|
||||
|
Reference in New Issue
Block a user