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
Metadata
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| meta_translate-0.0.1.tar.gz | 2.6 kB | Without provenance | Details for meta_translate-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| meta_translate-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for meta_translate-0.0.1-py3-none-any.whl |
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
|
Security for meta-translate 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.