This commit is contained in:
Quan HL
2024-04-17 23:11:03 +07:00
parent ad5df4b7f7
commit b7f6c5b20c
+3 -1
View File
@@ -68,7 +68,9 @@ class TtsTask extends Task {
tts_engine: vendor,
tts_voice: voice,
cache_speech_handles: 1,
GOOGLE_TTS_APPLICATION_CREDENTIALS: JSON.stringify(credentials.credentials)
...(vendor === 'google' && {
GOOGLE_TTS_APPLICATION_CREDENTIALS: JSON.stringify(credentials.credentials)
})
}).catch((err) => this.logger.info({err}, `${this.name}: Error setting tts_engine on endpoint`));
if (!preCache) this.logger.info({vendor, language, voice, model}, `${this.name}:exec`);