Skip to main content

No project description provided

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

meta_translate-0.0.1.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

meta_translate-0.0.1-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file meta_translate-0.0.1.tar.gz.

File metadata

  • Download URL: meta_translate-0.0.1.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for meta_translate-0.0.1.tar.gz
Algorithm Hash digest
SHA256 45b67a8721af985104d40bf16b4da62adcfe785d5b470d937cf23b396055c6a8
MD5 e5bb29fb5b3cf4ef6f94d0aa1888ae21
BLAKE2b-256 64d5fa95a659559bf026a798e427c1182dedf121a1dd09d741bd7f98fabcc32b

See more details on using hashes here.

File details

Details for the file meta_translate-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for meta_translate-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8074975ef8d6274faad1b0510b8007bfaaca585f5ec2543fb3c6d4bd347e55e3
MD5 597235d217b30cc54021c3338557d9f3
BLAKE2b-256 bad60d5528f8bb95139518f02dc51771b952b707bedfd524d66b900adbfa6664

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page