Parameters
Breaks a piece of text into sentences and returns an array containing the lengths in each sentence.
Parameters
Detects the language of a selection of text.
Parameters
paramsObject Parametersparams.textstring A string representing the text from an unknown language. The size of the text must not exceed 10000 characters.
fncallback callback
Detects the language of an array of strings.
Parameters
Obtains a list of the languages supported by the Translator Service.
Parameters
paramsObject Parametersfncallback callbacklocalestring A string representing a combination of an ISO 639 two-letter lowercase culture code associated with a language and an ISO 3166 two-letter uppercase subculture code to localize the language names or a ISO 639 lowercase culture code by itself.languageCodesArray<string> A string array representing the ISO 639-1 language codes to retrieve the friendly name for.
Obtains a list of the language codes supported by the Translator Service for speech synthesis.
Parameters
fncallback callback
Obtains a list of the language codes supported by the Translator Service.
Parameters
fncallback callback
Retrieves an array of translations for a given language pair from the store and the MT engine. GetTranslations differs from Translate as it returns all available translations.
Parameters
paramsObject Parametersparams.textstring The text to translate. The size of the text must not exceed 10000 characters.params.fromstring Language code of the translation text.params.tostring Language code to translate the text into.params.maxTranslationsint Maximum number of translations to return.params.optionsObject? Options
fncallback callback
Returns an array of alternative translations of the passed array of text.
Parameters
paramsObject Parametersparams.textsArray<string> The texts for translation. All strings must be of the same language. The total of all texts to be translated must not exceed 10000 characters. The maximum number of array elements is 10.params.fromstring Language code of the translation text.params.tostring Language code to translate the text into.params.maxTranslationsint Maximum number of translations to return.params.optionsObject? Options
fncallback callback
Returns a wave or mp3 stream of the passed-in text being spoken in the desired language.
Parameters
paramsObject Parametersparams.textstring A sentence or sentences of the specified language to be spoken for the wave stream. The size of the text to speak must not exceed 2000 characters.params.languagestring Language code to speak the text inparams.formatstring Content-type 'audio/wav' or 'audio/mp3' (optional, defaultaudio/wav)params.optionsObject? Options
fncallback callback
Returns a string which is a URL to a wave or mp3 stream of the passed-in text being spoken in the desired language.
Parameters
paramsObject Parametersparams.textstring A sentence or sentences of the specified language to be spoken for the wave stream. The size of the text to speak must not exceed 2000 characters.params.languagestring Language code to speak the text inparams.formatstring Content-type 'audio/wav' or 'audio/mp3' (optional, defaultaudio/wav)params.optionsObject? Options
fncallback callback
Converts a text string from one language to another.
Parameters
paramsObject Parametersparams.textstring The text to translate. The size of the text must not exceed 10000 characters.params.fromstring? Language code of the translation text.params.tostring Language code to translate the text into.params.contentTypestring? The format of the text being translated. The supported formats are 'text/plain' and 'text/html'. Any HTML needs to be well-formed.params.categorystring The category of the translation (optional, defaultgeneral)
fncallback callback
Translates an array of texts into another language.
Parameters
paramsObject Parametersparams.textsArray<string> The texts for translation. All strings must be of the same language. The total of all texts to be translated must not exceed 10000 characters. The maximum number of array elements is 2000.params.fromstring? Language code of the translation textparams.tostring Language code to translate the text toparams.optionsObject? Options
fncallback callback
Works just like regular TranslateArray(), except it has an additional element in the response structure, called "Alignment". http://msdn.microsoft.com/en-us/library/dn198370.aspx
Parameters
paramsObject Parametersparams.textsArray<string> The texts for translation. All strings must be of the same language. The total of all texts to be translated must not exceed 10000 characters. The maximum number of array elements is 2000.params.fromstring? Language code of the translation textparams.tostring Language code to translate the text toparams.optionsObject? Options
fncallback callback
Adds a translation to the translation memory.
Parameters
paramsObject Parametersparams.originalTextstring The text to translate from. The string has a maximum length of 1000 characters.params.translatedTextstring Translated text in the target language. The string has a maximum length of 2000 characters.params.fromstring Language code of the source language. Must be a valid culture name.params.tostring Language code of the target language. Must be a valid culture name.params.userstring A string used to track the originator of the submission.params.ratingint The quality rating for this string. Value between -10 and 10. (optional, default1)params.contentTypestring? The format of the text being translated. The supported formats are 'text/plain' and 'text/html'. Any HTML needs to be well-formed.params.categorystring The category (domain) of the translation. (optional, defaultgeneral)params.uristring? The content location of this translation.
fncallback callback
Type: Function
Parameters