Client libraries

While you can use Media Translation by making direct requests, we provide client libraries for several popular languages. Media Translation client libraries are built on Google Cloud Client Libraries. This common infrastructure provides functionality for API-specific library implementations, but it also provides types and methods that you may use directly when using any Cloud API.

Available client libraries

Media Translation provides client libraries and guides for the following languages:

Python

To learn how to install and use the client library for Media Translation, see Media Translation client libraries. For more information, see the Media Translation Python API reference documentation.

To authenticate to Media Translation, set up Application Default Credentials. For more information, see Set up authentication for a local development environment.

This page provides reference documentation and related resources for the Media Translation Python client library.

Resource Description
Library reference Media Translation Python library reference
Language guide General guide for using Python with GCP
GitHub repository Source code and additional documentation for this library
Stack Overflow Questions tagged with Media Translation and Python

Installation

To install the client library:

pip install --upgrade google-cloud-media-translation

Java

To learn how to install and use the client library for Media Translation, see Media Translation client libraries. For more information, see the Media Translation Java API reference documentation.

To authenticate to Media Translation, set up Application Default Credentials. For more information, see Set up authentication for a local development environment.

This page provides reference documentation and related resources for the Media Translation Java client library.

Resource Description
Library reference Media Translation Java library reference
Language guide General guide for using Java with GCP
GitHub repository Source code and additional documentation for this library
Stack Overflow Questions tagged with Media Translation and Java

Installation

To install the client library:

If you are using Maven with BOM, add this to your pom.xml file:

<dependencyManagement>
  <dependencies>
    <dependency>
      <groupId>com.google.cloud</groupId>
      <artifactId>libraries-bom</artifactId>
      <version>20.8.0</version>
      <type>pom</type>
      <scope>import</scope>
    </dependency>
  </dependencies>
</dependencyManagement>
<dependencies>
  <dependency>
    <groupId>com.google.cloud</groupId>
    <artifactId>google-cloud-mediatranslation</artifactId>
  </dependency>
</dependencies>

If you are using Maven without BOM, add this to your dependencies:

<dependency>
  <groupId>com.google.cloud</groupId>
  <artifactId>google-cloud-mediatranslation</artifactId>
  <version>0.2.1</version>
</dependency>

If you are using Gradle, add this to your dependencies:

compile 'com.google.cloud:google-cloud-mediatranslation:0.1.0'

If you are using SBT, add this to your dependencies:

libraryDependencies += "com.google.cloud" % "google-cloud-mediatranslation" % "0.1.0"

Node.js

To learn how to install and use the client library for Media Translation, see Media Translation client libraries. For more information, see the Media Translation Node.js API reference documentation.

To authenticate to Media Translation, set up Application Default Credentials. For more information, see Set up authentication for a local development environment.

This page provides reference documentation and related resources for the Media Translation Node.js client library.

Resource Description
Library reference Media Translation Node.js library reference
Language guide General guide for using Node.js with GCP
GitHub repository Source code and additional documentation for this library
Stack Overflow Questions tagged with Media Translation and Node.js

Installation

To install the client library:

npm install @google-cloud/media-translation

Authentication and access control

The Media Translation quickstart guides provide basic information on authentication and access control. For more detailed information, see the following: