Forum Discussion
Short phrase language detection
Hi, one problem I had with Bot development was detecting the language the user was trying to speak in. The problem was that the language detection is great for processing scripts of text but isn't hot for just short 'stubby' phrases. Is there any movement to help with this and/or have I just missed a new change?
pauliom not sure exactly what text language detection capability you are using, but text analytics has a default language hint capability you could populate with the previous detected language. See here: Detect language with the Text Analytics REST API - Azure Cognitive Services | Microsoft Docs
- HeikoRaMicrosoft
Hi pauliom,
Are you looking for language detection from text or directly from audio?
For audio we have automatic Language ID: How to use automatic language detection for speech to text - Azure Cognitive Services | Microsoft Docs
- pauliomCopper Contributor
HeikoRa Looking at the SDK it's interesting that you are constraining the languages to pick from. One of the big problems with short phrases is you can't provide any context. For example, if you say "ya" you get Norwegian rather than German. If you could say, "I was previously speaking German and now I say 'ya'" then it would be good to weight the answer towards German.
- HeikoRaMicrosoft
pauliom not sure exactly what text language detection capability you are using, but text analytics has a default language hint capability you could populate with the previous detected language. See here: Detect language with the Text Analytics REST API - Azure Cognitive Services | Microsoft Docs