Add canttalk module, few changes here and there to accomodate for it
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
@@ -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';
|
||||
|
@@ -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';
|
||||
|
@@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user