Noticing a sentence in another language
# support
s
Hello! My assistant speaks two languages (with the help of squads), but she only understands the language change request in the main language - not the secondary. If I tell "Do you speak english?" it doesn't understand it. I use Azure as transcriber due to the obsolescence of Deepgram v2. How could I force my assistant to understand just one sentence in the second language?
v
Thanks for your question! Based on the documentation, there isn't a clear method to have Azure's transcriber recognize just one sentence in a secondary language within a conversation. Could you clarify if you want the assistant to always listen for language change requests in both languages, or only in specific scenarios (e.g., after a certain trigger)? Sources: - [Vapi Multilingual Support Documentation](https://docs.vapi.ai/customization/multilingual) - [Vapi Squads Documentation](https://docs.vapi.ai/squads) - [Vapi Changelog: Azure Speech Transcriber Support](https://docs.vapi.ai/changelog/2024/12/13)
s
@Vapi Support Bot @Vapi The language change is usually in the beginning of the call, I want my assistant that it recognize context of "Do you speak English?" or similar.
v
Currently, there is no built-in way to have Azure's transcriber recognize a single sentence in a secondary language (like "Do you speak English?") at the start of a call. The assistant will only recognize triggers in the language set for the transcriber. Actionable suggestion: Consider configuring your initial assistant to prompt the user in both languages at the start, such as:
Copy code
text
"Para continuar en inglés, diga 'English' o presione 1. / To continue in Spanish, diga 'Español' o presione 2."
This ensures the language change request is recognized by the transcriber. For more advanced routing, use Squads to transfer between language-specific assistants based on clear, recognized triggers. [See Multilingual Support Docs](https://docs.vapi.ai/customization/multilingual) Sources: - [Vapi Multilingual Support Documentation](https://docs.vapi.ai/customization/multilingual) - [Vapi Squads Documentation](https://docs.vapi.ai/squads)
k
Set
AzureSpeechTranscriber.language
to the secondary language just before transcribing the sentence, then switch it back, this allows your assistant to understand a single sentence in the secondary language..
s
How to do this?
c
Temporarily set
AzureSpeechTranscriber.language
to the secondary language just before transcription, then switch it back to the primary language immediately after..
s
Sorry I'm not professional in coding. I use make.com to automate, and json of assistant. I don't know where to search for AzureSpeechTranscriber.language, or how to automatically switch it before the sentence and switch it back.
c
You can’t change AzureSpeechTranscriber.language mid-session, so use two steps: one to transcribe with the secondary language, then another to switch back to the primary language by creating a new recognizer each time..
2 Views