Click or drag to resize
MicrosoftTranslatorService Class
Class providing access to the Microsoft Translator API.
Inheritance Hierarchy
SystemObject
  CMS.TranslationServicesBaseTranslationService
    CMS.TranslationServicesAbstractMachineTranslationService
      CMS.TranslationServicesMicrosoftTranslatorService

Namespace: CMS.TranslationServices
Assembly: CMS.TranslationServices (in CMS.TranslationServices.dll) Version: 13.0.131
Syntax
C#
public class MicrosoftTranslatorService : AbstractMachineTranslationService

The MicrosoftTranslatorService type exposes the following members.

Constructors
  NameDescription
Public methodMicrosoftTranslatorService
Top
Properties
  NameDescription
Public propertyCustomParameter
Get or sets custom parameter.
(Inherited from BaseTranslationService.)
Public propertyMSTranslatorTextAPISubscriptionKey
Subscription key from Translator Text API azure cognitive service https://docs.microsoft.com/en-us/azure/cognitive-services/translator/translator-text-how-to-signup.
Public propertySiteName
Gets or sets the name of the site where the settings are retrieved from.
(Inherited from BaseTranslationService.)
Top
Methods
  NameDescription
Public methodDetect
Detects language of given text using Translator Text API azure cognitive service.
(Overrides AbstractMachineTranslationServiceDetect(String).)
Public methodIsAvailable
Checks if everything required to run the service is in the settings of the service.
(Overrides BaseTranslationServiceIsAvailable.)
Public methodSpeak
Returns stream of wav file generated by Translator Text API azure cognitive service.
(Overrides AbstractMachineTranslationServiceSpeak(String, String).)
Public methodTranslate
Translates given text using Translator Text API azure cognitive service.
(Overrides AbstractMachineTranslationServiceTranslate(String, String, String).)
Top
See Also