Android Cloud SDK per la traduzione di testi e documenti

Aggiungi funzionalità di traduzione alle app per dispositivi Android utilizzando l’API GroupDocs.Translation. Porta la traduzione su qualsiasi sistema, dai netbook entry-level agli smartphone.

  • GroupDocs.Translation Cloud SDK for cURL
  • GroupDocs.Translation Cloud SDK for .NET
  • GroupDocs.Translation Cloud SDK for Java
  • GroupDocs.Translation Cloud SDK for Python
Inizia la prova gratuita

GroupDocs.Translation offers real-time machine translation for texts, documents, images and resources. Powerful machine learning algorithms and sophisticated neural networks provide a quality close to that of a professional human translator, but much faster and more cost-effective. Running on a high-performance cloud server hosted by GroupDocs, it can translate PDF, Microsoft Office and OpenOffice documents, Markdown files, and .NET resources into 46 European, Middle East and Asian languages (across 128 language pairs). The API not only translates text, but also accurately preserves metadata, structure, styles, and layout of documents.

This SDK greatly simplifies the interaction with GroupDocs.Translation Cloud services from Android apps, allowing you to focus on business logic rather than the technical details. It handles all the routine operations such as establishing connections, sending API requests, and parsing responses, wrapping all these tasks into a few simple methods. The translation is carried out by high-performance cloud servers. You can use the application on any system – from entry-level netbooks to smartphones.

The Android SDK, demo applications, documentation, and examples are open source distributed under the MIT license. You can use them for any purpose and change any part of the code.

Funzionalità avanzate di GroupDocs.Translation Cloud SDK per Android

Supports 46 languages and 128 language pairs

Translates to and from 46 European, Middle East and Asian languages

Traduce tabelle in documenti Word e presentazioni PowerPoint

Traduce intestazioni e piè di pagina nei documenti

Traduce note a piè di pagina e note di chiusura nei documenti di Word

Traduce le didascalie delle immagini nei documenti Word

Traduce cornici di testo, grafici e diapositive nelle presentazioni PowerPoint

Traduce i testi all’interno delle celle del foglio di calcolo

Traduce grafici e tabelle pivot nelle cartelle di lavoro di Excel

Traduce i file Markdown preservando tutta la formattazione Markdown comune

Traduce file da URL e repository pubblici

Converte i risultati in diversi formati senza software aggiuntivo

Riferimenti dettagliati per sviluppatori basati sulla raccolta di Swagger

Inizia con l’SDK di traduzione di documenti per Android

GroupDocs.Translation Cloud SDK per Android viene fornito con guide dettagliate per sviluppatori ed esempi di codice in tempo reale per iniziare a lavorare con le funzionalità API in pochissimo tempo. Crea semplicemente un account gratuito su GroupDocs Cloud, ottieni il SID dell’APP e le informazioni sulla chiave per comunicare con l’API GroupDocs Cloud.

Qualsiasi lingua, piattaforma e fornitore di servizi di archiviazione

GroupDocs.Translation for Cloud è un’API REST facilmente integrabile con qualsiasi linguaggio o piattaforma, in grado di gestire richieste e risposte HTTP. Supporta tutti i più diffusi servizi di cloud storage come Google Cloud, Drive, DropBox e Amazon S3 per interagire senza dipendenze.

Traduci testo normale in Android

  package com.groupdocs;
  // Import classes

  import com.groupdocs.model.*;
  import org.openapitools.client.api.TranslationApi;

  public class TextDemo {
      public static void main(String[] args) {
          String basePath = "https://api.groupdocs.cloud/v2.0/translation";
          String cliendId = "YOUR_CLIENT_ID";
          String clientSecret = "YOUR_CLIENT_SECRET";

          ApiClient defaultClient = new ApiClient(basePath, cliendId, clientSecret, null);
          TranslationApi translationApi = new TranslationApi(defaultClient);
          TextRequest request = new TextRequest();
          request.setSourceLanguage("en");
          request.addTargetLanguagesItem("de");
          request.addTextsItem("Text to translate");
          try {
              String r = translationApi.textPost(request).getId();
              CloudTextResponse response = translationApi.textRequestIdGet(r);
              if (!response.getStatus().toString().equals("500")) {
                  while (true) {
                      response = translationApi.textRequestIdGet(r);
                      if (response.getStatus().toString().equals("200")) {
                          System.out.println(response);
                          break;
                      }
                      try {
                          Thread.sleep(2000);
                      } catch (InterruptedException e) {
                          e.printStackTrace();
                      }
                  }
              }
          }
          catch(ApiException e){
              System.err.println("Exception when calling TranslationApi#textPost");
              System.err.println("Status code: " + e.getCode());
              System.err.println("Reason: " + e.getResponseBody());
              System.err.println("Response headers: " + e.getResponseHeaders());
              e.printStackTrace();
          }
      }
  }

Sicurezza e autenticazione

L’API GroupDocs.Translation Cloud è protetta da SSL e le richieste di autenticazione richiedono una firma e parametri di query AppSID o un’intestazione di autorizzazione OAuth 2.0.

Supporto e risorse per l'apprendimento

GroupDocs.Translation Cloud offre SDK per i linguaggi e le piattaforme di programmazione più diffusi:

  Italiano