Module implementing the Microsoft translation engine.
None |
MicrosoftEngine | Class implementing the translation engine for the Microsoft translation service. |
None |
Class implementing the translation engine for the Microsoft translation service.
AccessTokenUrl |
TextToSpeechUrl |
TranslatorUrl |
None |
MicrosoftEngine | Constructor |
__getAccessToken | Private slot to get an access token. |
__getClientDataAzure | Private method to retrieve the client data. |
__mapLanguageCode | Private method to map a language code to the Microsoft code. |
engineName | Public method to return the name of the engine. |
getTextToSpeechData | Public method to pronounce the given text. |
getTranslation | Public method to translate the given text. |
hasTTS | Public method indicating the Text-to-Speech capability. |
supportedLanguages | Public method to get the supported languages. |
None |
Constructor
Private slot to get an access token.
If the stored token is no longer valid, get a new one and store it.
Private method to retrieve the client data.
Private method to map a language code to the Microsoft code.
Public method to return the name of the engine.
Public method to pronounce the given text.
Public method to translate the given text.
Public method indicating the Text-to-Speech capability.
Public method to get the supported languages.