mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-21 09:08:02 +00:00
avoid a pre-caching attempt if synth settings change
This commit is contained in:
@@ -1333,6 +1333,10 @@ Duration=${duration} `
|
|||||||
|
|
||||||
_preCacheAudio(newTasks) {
|
_preCacheAudio(newTasks) {
|
||||||
for (const task of newTasks) {
|
for (const task of newTasks) {
|
||||||
|
if (task.name === TaskName.Config && task.hasSynthesizer) {
|
||||||
|
/* if they change synthesizer settings don't try to precache */
|
||||||
|
break;
|
||||||
|
}
|
||||||
if (task.name === TaskName.Say) {
|
if (task.name === TaskName.Say) {
|
||||||
/* identify vendor language, voice, and label */
|
/* identify vendor language, voice, and label */
|
||||||
const vendor = task.synthesizer.vendor && task.synthesizer.vendor !== 'default' ?
|
const vendor = task.synthesizer.vendor && task.synthesizer.vendor !== 'default' ?
|
||||||
|
|||||||
Reference in New Issue
Block a user