Skip to main content

Meta Translate

Meta Translate is a Python wrapper designed to streamline the utilization of Meta AI's Seamless text and speech translation model. This wrapper simplifies complex operations into a single Python code line, enabling users to effortlessly translate texts and speech into multiple languages.

Key Features

  • Efficiency: Meta Translate combines multiple line operations into a concise Python code call, making translation tasks more straightforward.

  • Local Model Loading: Unlike other Python libraries such as Bark and Google TTS engines, Meta Translate loads models natively on your local system before performing the translation process.

  • Privacy: Meta Translate provides a superior solution by ensuring that models operate locally, offering both free unlimited translation tasks and enhanced privacy.

CODENAME

Meta Translate is developed under the THUNDERSTORM PROJECT.

Quickstart

Install the library using pip:

pip install meta_translate
from meta_translate import load_seamless_m4t_model
from meta_translate import text_to_translated_text

# Load the model
model_name = "facebook/hf-seamless-m4t-medium"
processor, model = load_seamless_m4t_model(model_name)

# Perform translation
text_to_translate = """Technology has transformed the way we communicate and access information. In today's interconnected world, the rapid advancement of digital tools has made communication more instantaneous and information more accessible than ever before."""
translated_result = text_to_translated_text(model, processor, text_to_translate, tgt_lang="spa")

# Print the output
print(translated_result)

LICENCE

ALL RIGHTS RESERVED UNDER MIT LICENSE AND META AI TERMS AND CONDITIONS

Release files for meta-translate 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for meta-translate 0.0.1
File Size Uploaded
meta_translate-0.0.1.tar.gz 2.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for meta-translate 0.0.1
File Interpreter ABI Platform
meta_translate-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 5.7 kB

Release files / meta_translate-0.0.1.tar.gz

Download URL meta_translate-0.0.1.tar.gz
Size 2.6 kB
Tags Source
SHA-256 checksum
How to use checksums
45b67a8721af985104d40bf16b4da62adcfe785d5b470d937cf23b396055c6a8
BLAKE2b-256 checksum
How to use checksums
64d5fa95a659559bf026a798e427c1182dedf121a1dd09d741bd7f98fabcc32b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.10

Release files / meta_translate-0.0.1-py3-none-any.whl

Download URL meta_translate-0.0.1-py3-none-any.whl
Size 3.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8074975ef8d6274faad1b0510b8007bfaaca585f5ec2543fb3c6d4bd347e55e3
BLAKE2b-256 checksum
How to use checksums
bad60d5528f8bb95139518f02dc51771b952b707bedfd524d66b900adbfa6664
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.10

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page