テキストとドキュメントの翻訳用の Android Cloud SDK

GroupDocs.Translation API を使用して、Android デバイス用アプリに翻訳機能を追加します。エントリーレベルのネットブックからスマートフォンまで、あらゆるシステムに翻訳をもたらします。

  • GroupDocs.Translation Cloud SDK for cURL
  • GroupDocs.Translation Cloud SDK for .NET
  • GroupDocs.Translation Cloud SDK for Java
  • GroupDocs.Translation Cloud SDK for Python
無料トライアルを開始

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.

GroupDocs.Translation Cloud SDK for Android の高度な機能

Supports 46 languages and 128 language pairs

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

Word 文書および PowerPoint プレゼンテーションの表を翻訳します

ドキュメントのヘッダーとフッターを翻訳します

Word 文書の脚注と文末脚注を翻訳します

Word 文書の画像キャプションを翻訳します

PowerPoint プレゼンテーションのテキスト フレーム、チャート、スライドを翻訳します

スプレッドシートのセル内のテキストを翻訳します

Excel ワークブックのグラフとピボット テーブルを翻訳します

すべての一般的な Markdown フォーマットを保持して Markdown ファイルを変換します

URL とパブリック リポジトリからファイルを変換します

追加のソフトウェアなしで結果をさまざまな形式に変換

Swagger コレクションに基づく詳細な開発者リファレンス

ドキュメント翻訳 SDK for Android を使ってみる

GroupDocs.Translation Cloud SDK for Android には、詳細な開発者ガイドとライブ コード例が付属しており、すぐに API 機能を使い始めることができます。 GroupDocs Cloud で無料のアカウントを作成し、APP SID とキー情報を取得して GroupDocs Cloud API と通信するだけです。

あらゆる言語、プラットフォーム、ストレージ サービス プロバイダー

GroupDocs.Translation for Cloud は、任意の言語またはプラットフォームと簡単に統合できる REST API であり、HTTP 要求と応答を管理できます。 Google Cloud、Drive、DropBox、Amazon S3 などの一般的なクラウド ストレージ サービスをすべてサポートし、依存関係なしでやり取りできます。

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();
          }
      }
  }

セキュリティと認証

GroupDocs.Translation Cloud APIはSSLで保護されており、認証リクエストには署名とAppSIDクエリパラメーターまたはOAuth2.0認証ヘッダーが必要です。

サポートと学習リソース

GroupDocs.Translation Cloud は、一般的なプログラミング言語およびプラットフォーム用の SDK を提供します。

  日本語