prune unused function (#478)

This commit is contained in:
Dave Horton
2023-10-09 15:03:27 -04:00
committed by GitHub
parent cb78627e66
commit f651cfa0b7

View File

@@ -235,9 +235,8 @@ class Dialogflow extends Task {
} }
try { 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 (filePath) cs.trackTmpFile(filePath);
if (!this.ttsCredentials && !servedFromCache) cs.billForTts(intent.fulfillmentText.length);
if (this.playInProgress) { if (this.playInProgress) {
await ep.api('uuid_break', ep.uuid).catch((err) => this.logger.info(err, 'Error killing audio')); await ep.api('uuid_break', ep.uuid).catch((err) => this.logger.info(err, 'Error killing audio'));