Skip to content

Commit 4c4962f

Browse files
committed
fix(voice): remove hard-coded Chinese language from Gemini backend
buildGeminiLiveConfig was appending VOICE_CHINESE_LANGUAGE_BLOCK which forced Gemini to always respond in Mandarin regardless of user locale. Gemini now uses the neutral base prompt and responds in the language the user speaks to it, consistent with the ElevenLabs behaviour.
1 parent 3553281 commit 4c4962f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

shared/src/voice.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ export function buildGeminiLiveFunctionDeclarations(): GeminiLiveFunctionDeclara
344344
export function buildGeminiLiveConfig(): GeminiLiveConfig {
345345
return {
346346
model: GEMINI_LIVE_MODEL,
347-
systemInstruction: VOICE_SYSTEM_PROMPT + VOICE_CHINESE_LANGUAGE_BLOCK,
347+
systemInstruction: VOICE_SYSTEM_PROMPT,
348348
tools: [
349349
{
350350
functionDeclarations: buildGeminiLiveFunctionDeclarations()

0 commit comments

Comments
 (0)