prehistoric-hospital-42098
08/11/2025, 7:40 AMtall-airline-16756
08/11/2025, 7:40 AMtall-airline-16756
08/11/2025, 7:41 AMprehistoric-hospital-42098
08/11/2025, 7:45 AMtall-airline-16756
08/11/2025, 7:46 AMlanguages
parameter to include all the languages you want, like ["en", "hi"]
.
2. Turn on code-switching by setting code_switching=True
.
Here’s an example configuration to get you started:
gladia_stt = GladiaSTT(
languages=["en", "hi"],
code_switching=True
)
And if you’re also looking to add translation, you can enable that too:
gladia_stt = GladiaSTT(
languages=["en", "hi"],
code_switching=True,
translation_enabled=True,
translation_target_languages=["en"] # Translate to English
)
This way, your STT setup can smoothly handle multiple languages and switch between them without missing a beat.prehistoric-hospital-42098
08/11/2025, 7:51 AMtall-airline-16756
08/11/2025, 7:52 AMtall-airline-16756
08/11/2025, 2:43 PM