Multilingual Voice Bot
Adding Languages
Guide to adding languages to your voice bot.
In this guide, we’ll explore how to add languages to your voice bot.
Azure Transcriber
Azure Transcriber supports a wide range of languages.
Trying Out Languages Online
- Visit the Azure Transcriber page.
- Note the language codes, which you’ll need for the next step.
Adding Additional Languages in voice_bot.py
To support additional languages in your VoiceBot, update the languages
parameter in the AzureTranscriber
node. Follow these steps:
Steps to Add a New Language:
-
Identify the Language Code:
- Refer to the Azure Cognitive Services Speech-to-Text documentation to find the appropriate language code for the language you want to add.
-
Update the
languages
List:- In
voice_bot.py
, locate theAzureTranscriber
initialization within thesetup
method. - Add the new language code to the
languages
list. For example, to add Spanish, include"es-ES"
.
- In
-
Restart the VoiceBot:
- After updating the code, restart your VoiceBot to apply the changes.
-
Test the New Language:
- Verify that the VoiceBot correctly processes audio in the newly added language.
By following these steps, you can easily expand the language capabilities of your VoiceBot to cater to a broader audience.
Was this page helpful?