Added Google TTS, lowercase voices so that people don't have to remember ridiculous case
This commit is contained in:
@@ -10,7 +10,7 @@ module.exports = class AzureTTS extends BaseEngine {
|
||||
}
|
||||
|
||||
getDefaultVoice() {
|
||||
return "";
|
||||
return "Aria";
|
||||
}
|
||||
|
||||
getSpeechFile(text, filepath, voice = this.getDefaultVoice(), params = {}) {
|
||||
@@ -48,7 +48,7 @@ module.exports = class AzureTTS extends BaseEngine {
|
||||
json.forEach((voice) => {
|
||||
if (this.voices[voice.DisplayName]) {
|
||||
if (voice.Name.includes('Neural')) {
|
||||
this.voices[voice.DisplayName] = voice.ShortName;
|
||||
this.voices[voice.DisplayName.toLowerCase()] = voice.ShortName;
|
||||
}
|
||||
} else {
|
||||
this.voices[voice.DisplayName] = voice.ShortName;
|
||||
|
Reference in New Issue
Block a user