Implement api.output, announcevoice command, a bunch of other tts shit, etc etc etc buh
This commit is contained in:
@@ -6,7 +6,10 @@ module.exports= class extends BaseEngine {
|
||||
constructor() {
|
||||
super("Google Translate TTS","mp3");
|
||||
}
|
||||
async getSpeech(text, voice='en-us', params={}) {
|
||||
getDefaultVoice() {
|
||||
return 'en-us';
|
||||
}
|
||||
async getSpeech(text, voice=this.getDefaultVoice(), params={}) {
|
||||
const url = tts.getAudioUrl(text, {lang: voice});
|
||||
return fetch(url);
|
||||
}
|
||||
|
Reference in New Issue
Block a user