Add canttalk module, few changes here and there to accomodate for it

This commit is contained in:
2021-04-09 03:00:55 +02:00
parent 3b1a419db4
commit 1fe978eec6
12 changed files with 757 additions and 12 deletions

View File

@@ -1,7 +1,8 @@
const fs = require('fs');
module.exports = class {
constructor(longName, fileExtension, supportedParameters = []) {
constructor(shortName, longName, fileExtension, supportedParameters = []) {
this.shortName = shortName;
this.longName = longName;
this.fileExtension = fileExtension;
}

View File

@@ -3,7 +3,7 @@ const { spawn } = require('child_process')
module.exports = class extends BaseEngine {
constructor() {
super('ESpeak', 'wav')
super('espeak','ESpeak', 'wav')
}
getDefaultVoice() {
return 'en';

View File

@@ -4,7 +4,7 @@ const tts = require('google-tts-api');
module.exports = class extends BaseEngine {
constructor() {
super("Google Translate TTS", "mp3");
super('gtranslate', "Google Translate TTS", "mp3");
}
getDefaultVoice() {
return 'en-us';

View File

@@ -4,7 +4,7 @@ const querystring = require('querystring');
module.exports = class extends BaseEngine {
constructor() {
super("IBM Watson TTS", "ogg");
super('watson',"IBM Watson TTS", "ogg");
this.voices = {};
this.populateVoiceList();
}