AI-102 Question 190
Single answerYou are building a customer support chatbot for a global company that supports users in multiple languages. The chatbot needs to detect the language of user input accurately before routing the message to the appropriate response system. Which Azure service or API should you use to achieve this?
- A
Azure Cognitive Services Text Analytics API
- B
Azure Translator Text API
- C
Azure Speech Service
- D
Azure Bot Framework
Show answer and explanation
Correct answer: A
Explanation
The Azure Cognitive Services Text Analytics API includes built-in capabilities for detecting the language of input text, making it the ideal choice for this scenario. While other services like the Translator Text API or Speech Service offer complementary features, they do not directly address the requirement to detect the language of text input.
- A. Correct.
The Azure Cognitive Services Text Analytics API provides a language detection feature that determines the language of the input text. This is the correct choice for detecting the language used in text.
- B. Incorrect.
The Azure Translator Text API is used for translating text between languages but does not specifically focus on language detection as its primary function.
- C. Incorrect.
The Azure Speech Service is primarily used for processing spoken input, such as speech-to-text and text-to-speech, and is not designed for text-based language detection.
- D. Incorrect.
The Azure Bot Framework is a platform for building conversational agents but does not include native language detection capabilities.