#58 - add support for platform (standard, or neural) when using aws tts

This commit is contained in:
Dave Horton
2022-01-19 19:46:24 -05:00
parent 26d4bfb63b
commit 8acb4d1a24
4 changed files with 100 additions and 87 deletions

View File

@@ -25,7 +25,7 @@ class TaskSay extends Task {
const vendor = hasVerbLevelTts ? this.synthesizer.vendor : cs.speechSynthesisVendor ;
const language = hasVerbLevelTts ? this.synthesizer.language : cs.speechSynthesisLanguage ;
const voice = hasVerbLevelTts ? this.synthesizer.voice : cs.speechSynthesisVoice ;
const platform = this.synthesizer.platform || 'standard';
const salt = cs.callSid;
const credentials = cs.getSpeechCredentials(vendor, 'tts');
@@ -48,6 +48,7 @@ class TaskSay extends Task {
vendor,
language,
voice,
platform,
salt,
credentials
}).catch((err) => {

View File

@@ -369,6 +369,10 @@
},
"language": "string",
"voice": "string",
"platform": {
"type": "string",
"enum": ["standard", "neural"]
},
"gender": {
"type": "string",
"enum": ["MALE", "FEMALE", "NEUTRAL"]