Azure provides a variety of "cognitive services" that allow your apps to interact with AI-powered algorithms in the cloud. One amongst them is Language Detection.
Language Detection enables your application to detect the language in which the user is sending the text. After identifying the language, the value returned by automatic language detection is then used to select the language model for speech to text, providing you with a more accurate transcription.