mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-20 16:50:39 +00:00
#58 - add support for platform (standard, or neural) when using aws tts
This commit is contained in:
@@ -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) => {
|
||||
|
||||
@@ -369,6 +369,10 @@
|
||||
},
|
||||
"language": "string",
|
||||
"voice": "string",
|
||||
"platform": {
|
||||
"type": "string",
|
||||
"enum": ["standard", "neural"]
|
||||
},
|
||||
"gender": {
|
||||
"type": "string",
|
||||
"enum": ["MALE", "FEMALE", "NEUTRAL"]
|
||||
|
||||
Reference in New Issue
Block a user