From d7c3a4a63274337dcb0f3a7bab7e0305c867bf5a Mon Sep 17 00:00:00 2001 From: Hoan Luu Huu <110280845+xquanluu@users.noreply.github.com> Date: Tue, 28 May 2024 23:30:25 +0700 Subject: [PATCH] support mod_custom_tts (#731) --- lib/tasks/say.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tasks/say.js b/lib/tasks/say.js index 702a3d2d..11b55e9a 100644 --- a/lib/tasks/say.js +++ b/lib/tasks/say.js @@ -100,7 +100,7 @@ class TaskSay extends TtsTask { } ep.set({ - tts_engine: vendor, + tts_engine: vendor.startsWith('custom:') ? 'custom' : vendor, tts_voice: voice, cache_speech_handles: !cs.currentTtsVendor || cs.currentTtsVendor === vendor ? 1 : 0, }).catch((err) => this.logger.info({err}, 'Error setting tts_engine on endpoint'));