TranslatorService.DetectLanguagesWithResponseAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Detects the language of a text.
public System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<Microsoft.Toolkit.Services.MicrosoftTranslator.DetectedLanguageResponse>> DetectLanguagesWithResponseAsync (System.Collections.Generic.IEnumerable<string> input);
abstract member DetectLanguagesWithResponseAsync : seq<string> -> System.Threading.Tasks.Task<seq<Microsoft.Toolkit.Services.MicrosoftTranslator.DetectedLanguageResponse>>
override this.DetectLanguagesWithResponseAsync : seq<string> -> System.Threading.Tasks.Task<seq<Microsoft.Toolkit.Services.MicrosoftTranslator.DetectedLanguageResponse>>
Public Function DetectLanguagesWithResponseAsync (input As IEnumerable(Of String)) As Task(Of IEnumerable(Of DetectedLanguageResponse))
Parameters
- input
- IEnumerable<String>
A string array containing the sentences whose language must be detected.
Returns
A DetectedLanguageResponse array with one result for each string in the input array. Each object contains information about the detected language.
Implements
Exceptions
The provided SubscriptionKey isn't valid or has expired.
Remarks
This method performs a non-blocking request for language detection.
For more information, go to https://docs.microsoft.com/azure/cognitive-services/translator/reference/v3-0-detect.