This commit is contained in:
Hoan HL
2026-01-14 17:34:07 +07:00
parent 62fec6f5e4
commit 417d58080e

View File

@@ -421,8 +421,8 @@ const synthGoogle = async(logger, {
const isVoiceCloning = typeof voice === 'object' && voice.voice_cloning_key; const isVoiceCloning = typeof voice === 'object' && voice.voice_cloning_key;
// HD voices have pattern like en-US-Chirp3-HD-Charon // HD voices have pattern like en-US-Chirp3-HD-Charon
const isHDVoice = typeof voice === 'string' && voice.includes('-HD-'); const isHDVoice = typeof voice === 'string' && voice.includes('-HD-');
// Live API is used for Gemini TTS and HD voices // Live API is used for HD voices
const useLiveApi = isGemini || isHDVoice; const useLiveApi = isHDVoice;
// Streaming support for Google TTS (Gemini, HD voices, and standard voices) // Streaming support for Google TTS (Gemini, HD voices, and standard voices)
// Voice cloning does not support streaming // Voice cloning does not support streaming