Language change detected server message not workin...
# support
m
Hello i'm trying to manage the server message ''language-change-detected" but is not possible to set it in the dashboard, also, if i trying use a transational agent, i add this server message in the configuration serverMessages: [ "end-of-call-report", "status-update", "hang", "function-call", "phone-call-control", "language-change-detected" ], but i don't get the "language-change-detected" message (yes i get the others)
v
According to the information I found, there is no
language-change-detected
event triggered in Vapi, which explains why you're not receiving this message even when configured. For language detection, Vapi uses automated language recognition instead. If you need to handle language changes, consider using the
codeSwitchingEnabled
parameter with your transcriber, which allows recognition of language switches within utterances:
Copy code
json
{
  "transcriber": {
    "provider": "deepgram",
    "codeSwitchingEnabled": true
  }
}
Note that the transcriber model must support code-switching and the specific languages being used. Sources: - [Discord conversation about language-change-detected](https://discord.com/channels/1211482211119796234/1270786139355090995) - [Discord conversation about code switching](https://discord.com/channels/1211482211119796234/1308120552140964034) - [Discord conversation about automated language recognition](https://discord.com/channels/1211482211119796234/1328595920899674152)
According to the information I found, there is no
language-change-detected
event triggered in Vapi, which explains why you're not receiving this message even when configured. For language detection, Vapi uses automated language recognition instead. If you need to handle language changes, consider using the
codeSwitchingEnabled
parameter with your transcriber, which allows recognition of language switches within utterances:
Copy code
json
{
  "transcriber": {
    "provider": "deepgram",
    "codeSwitchingEnabled": true
  }
}
Note that the transcriber model must support code-switching and the specific languages being used. Sources: - [Discord conversation about language-change-detected](https://discord.com/channels/1211482211119796234/1270786139355090995) - [Discord conversation about code switching](https://discord.com/channels/1211482211119796234/1308120552140964034) - [Discord conversation about automated language recognition](https://discord.com/channels/1211482211119796234/1328595920899674152)
m
@aivini
s
Hey! To help track down this issue, could you share: - The call ID This would really help us figure out what went wrong!
a
Hello! The call ID is : 40370a1f-f4f8-4ff6-b79f-43a11c5dc70c All de conversations with the number from +34911 67 77 69 to + 34 711 717 713 have the same trouble. Thanks
s
Copy code
"transcriber": {
      "model": "nova-3",
      "language": "multi",
      "provider": "deepgram",
      "codeSwitchingEnabled": true
    }
Apologies for the delayed response, You have to set codeSwitchingEnabled to true, after that you will get this event.
a
Hi Shubham, Thanks for the help. According to Deepgram’s official docs,
codeSwitchingEnabled
is supported on both
nova-2
and
nova-3
models. However, when I set
codeSwitchingEnabled: true
with
nova-3
, I get this error from Vapi: >
assistant.transcriber.codeSwitchingEnabled must be false. 'codeSwitchingEnabled' requires the model to be one of: nova-2, nova-2-general.
It seems there's a mismatch between Deepgram's capabilities and what Vapi currently allows. Can you confirm if support for
codeSwitchingEnabled
with
nova-3
will be added soon? Thanks!
s
Hey, let me check with the team on this why code switching enabled is not supported for the Nova 3 yet.
a
Thanks Shubham, This feature is important for our company.
s
You can raise an feature request for it over here: https://roadmap.vapi.ai
a
How long until this feature is supported in Vapi? Thanks
s
Hey, Could you please schedule a brief call at your convenience so we can discuss this matter in detail? Kindly use the following link to book a suitable time: .
a
thanks