support tts caching

This commit is contained in:
Dave Horton
2020-03-11 14:42:12 -04:00
parent afc1fd3639
commit 88e65c8836
5 changed files with 19 additions and 15 deletions

View File

@@ -29,8 +29,8 @@ class TaskSay extends Task {
}, this.synthesizer);
while (!this.killed && this.loop--) {
this.logger.debug(`TaskSay: remaining loops ${this.loop}`);
if (!filepath) {
this.logger.debug('TaskSay:exec - retrieving synthesized audio');
filepath = await synthAudio(opts);
cs.trackTmpFile(filepath);
}