Auto Detect language from list of Language Configs is giving result only in the last element of the Source Language Configuration List
I'm using Azure Speech to Text SDK version 1.21 in Golang. Here I'm adding a feature of Auto-detect language for the audio file using
speech.NewAutoDetectSourceLanguageConfigFromLanguageConfigs(sourceLanguageConfigs)
I'm giving a list of Source Language Configurations for multiple languages including a configuration for a Custom Model with an endpoint.
This feature gives a wrong result. It returns transcribed text using the last element of the Language Configuration List. It's not identifying the correct language. I've checked it multiple times by reordering the list and I'm getting the transcribed text in the last source language config only.
Why is it happening, can anyone help with it?