From f651cfa0b7f468c5ef83c7c0731c9d0942ed5e0b Mon Sep 17 00:00:00 2001 From: Dave Horton Date: Mon, 9 Oct 2023 15:03:27 -0400 Subject: [PATCH] prune unused function (#478) --- lib/tasks/dialogflow/index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/tasks/dialogflow/index.js b/lib/tasks/dialogflow/index.js index 21ef569e..539c55c9 100644 --- a/lib/tasks/dialogflow/index.js +++ b/lib/tasks/dialogflow/index.js @@ -235,9 +235,8 @@ class Dialogflow extends Task { } try { - const {filePath, servedFromCache} = await this._fallbackSynthAudio(cs, intent, stats, synthAudio); + const {filePath} = await this._fallbackSynthAudio(cs, intent, stats, synthAudio); if (filePath) cs.trackTmpFile(filePath); - if (!this.ttsCredentials && !servedFromCache) cs.billForTts(intent.fulfillmentText.length); if (this.playInProgress) { await ep.api('uuid_break', ep.uuid).catch((err) => this.logger.info(err, 'Error killing audio'));