mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-21 17:17:58 +00:00
add recognizer.azureServiceEndpoint for custom azure voices
This commit is contained in:
@@ -164,6 +164,10 @@ class TaskSay extends Task {
|
|||||||
'tts.voice': voice
|
'tts.voice': voice
|
||||||
});
|
});
|
||||||
try {
|
try {
|
||||||
|
if (vendor === 'microsoft' && this.synthesizer.azureServiceEndpoint) {
|
||||||
|
credentials.use_custom_tts = true;
|
||||||
|
credentials.custom_tts_endpoint = this.synthesizer.azureServiceEndpoint;
|
||||||
|
}
|
||||||
const {filePath, servedFromCache} = await synthAudio(stats, {
|
const {filePath, servedFromCache} = await synthAudio(stats, {
|
||||||
text,
|
text,
|
||||||
vendor,
|
vendor,
|
||||||
|
|||||||
@@ -435,7 +435,8 @@
|
|||||||
"gender": {
|
"gender": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": ["MALE", "FEMALE", "NEUTRAL"]
|
"enum": ["MALE", "FEMALE", "NEUTRAL"]
|
||||||
}
|
},
|
||||||
|
"azureServiceEndpoint": "string"
|
||||||
},
|
},
|
||||||
"required": [
|
"required": [
|
||||||
"vendor"
|
"vendor"
|
||||||
|
|||||||
Reference in New Issue
Block a user