Click or drag to resize
MicrosoftTranslatorService Class
Class providing access to the Microsoft Translator API.
Inheritance Hierarchy

Namespace: CMS.TranslationServices
Assembly: CMS.TranslationServices (in CMS.TranslationServices.dll) Version: 11.0.0
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 http://docs.microsofttranslator.com/text-translate.html.
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