avoid a pre-caching attempt if synth settings change

This commit is contained in:
Dave Horton
2024-01-13 12:21:54 -05:00
parent 5b1c2d3052
commit 119a49725a

View File

@@ -1333,6 +1333,10 @@ Duration=${duration} `
_preCacheAudio(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) {
/* identify vendor language, voice, and label */
const vendor = task.synthesizer.vendor && task.synthesizer.vendor !== 'default' ?