Compare commits

...

2 Commits

Author SHA1 Message Date
Quan HL
b7f6c5b20c wip 2024-04-17 23:11:03 +07:00
Quan HL
ad5df4b7f7 support google tts mod 2024-04-17 22:09:55 +07:00

View File

@@ -68,6 +68,9 @@ class TtsTask extends Task {
tts_engine: vendor,
tts_voice: voice,
cache_speech_handles: 1,
...(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`);