Introduction to text translation
Learn how Vivox translates text on request, including supported message types, language settings, and service limits.
Read time 2 minutesLast updated 6 days ago
Text translation lets players who speak different languages read each other's text messages. The Vivox service performs the translation, and the Vivox Core SDK provides the translation through on-request calls.
To add translation to your application, refer to Translate text messages.
Translation method
The Vivox Core SDK provides on-request translation.
Method | How it works | Use it to |
|---|---|---|
| On-request translation | Your application sends one or more texts to the service with a | Translate a specific message when a player asks for it, for example from a translate button next to a message. |
On-request translation doesn't send the translated text to anyone else, and the service doesn't archive or cache it. Only the account that made the request receives the result.
Source and target languages
Every translation has a source language, which is the language that the text is written in, and a target language, which is the language that the service translates the text into. Specify languages as language codes, for example or . The source and target languages must be different.
en-usfrOn-request translation always requires a target language. The source language is optional. If you don't specify it, the service detects the language of each text and reports the detected language with each translation.
Translated message identification
Events that can carry translated text include an field. When is , the following applies:
is_translatedis_translated1- The message text field, or
message_body, holds the translation instead of the text that the sender wrote.new_message - The field holds the language that the service translated the text into, instead of the language that the sender wrote in.
language
Use to show players that a message is a translation, for example with a label next to the message.
is_translatedAvailability and limits
Text translation is available in the Vivox Core SDK only. It's not yet available in the Vivox Unity SDK or the Vivox Unreal SDK.
The Vivox service enables translation for each issuer separately. Contact your Vivox representative to enable translation for your application.
The service sets limits on on-request translation, including the following:
- The number of texts in each request.
- The length of each text.
- The number of texts that each player can translate per minute.
If a request exceeds a limit, the service refuses it with an error that describes the problem. Because the service sets these limits, they can change without an update to the Vivox Core SDK.