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

  1. Issue: When the conversation starts, the languageCode is defaulted to en-US by the Telephony Gateway.

  2. Symptom: Even when the Playbook generates Vietnamese text (either plain text or wrapped in tags), the system still uses the en-US-Wavenet-A voice to read it. This results in an awkward “American accent” reading Vietnamese words.

  3. Attempted Fix: I tried to access $session.params.language_code to force a switch, but the origin response languageCode remains en

    How 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