google cloud platform – Dialogflow CX Telephony Language switching bottleneck
Environment:
-
Platform: Dialogflow CX (Conversational Agents Console)
-
Integration: Dialogflow CX Phone Gateway (Telephony)
-
Agent Type: Multilingual (Default: English, Supported: Vietnamese)
-
Feature: Generative Playbook with
gemini-2.5-flash
Problem : Language Detection & TTS Mismatch
I have enabled “Language auto detection and switching” and added both en and vi
-
Issue: When the conversation starts, the
languageCodeis defaulted toen-USby the Telephony Gateway. -
Symptom: Even when the Playbook generates Vietnamese text (either plain text or wrapped in
tags), the system still uses theen-US-Wavenet-Avoice to read it. This results in an awkward “American accent” reading Vietnamese words. -
Attempted Fix: I tried to access
$session.params.language_codeto force a switch, but the origin responselanguageCoderemainsenHow can I force the Telephony Gateway to switch the actual session
languageCode(and thus the TTS voice) dynamically when the user speaks Vietnamese?
Read more here: Source link
