support mod_custom_tts (#731)

This commit is contained in:
Hoan Luu Huu
2024-05-28 23:30:25 +07:00
committed by GitHub
parent c53ad89154
commit d7c3a4a632

View File

@@ -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'));