Downloads · 30 days
0
meem2525/video-dubbing-models
video-dubbing-models is a translation model from meem2525. Use it when you need text moved from one language to another. The card lists the license as mit.
مجموعة موديلات AI لدبلجة الفيديوهات تلقائياً بـ 13 لغة.
Downloads · 30 days
0
Access
Public
Updated Jan 17, 2026
Repo size
4 GB
Likes
0
Public
Click a slice to open those files.
.safetensors2.5 GB · 61%
From the Hugging Face model README
مجموعة موديلات AI لدبلجة الفيديوهات تلقائياً بـ 13 لغة.
from huggingface_hub import snapshot_download
import whisper
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
import torch
# تحميل الموديلات
repo_id = "meem2525/video-dubbing-models"
local_dir = snapshot_download(repo_id, cache_dir="./models")
# Whisper
whisper_model = whisper.load_model("medium", download_root=f"{local_dir}/whisper")
# NLLB
device = "cuda" if torch.cuda.is_available() else "cpu"
tokenizer = AutoTokenizer.from_pretrained(f"{local_dir}/nllb")
translator = AutoModelForSeq2SeqLM.from_pretrained(f"{local_dir}/nllb").to(device)
print("✅ جاهز للاستخدام!")
# 1. تفريغ الصوت
result = whisper_model.transcribe("audio.mp3", language="en")
text = result["text"]
# 2. ترجمة
tokenizer.src_lang = "eng_Latn"
inputs = tokenizer(text, return_tensors="pt").to(device)
outputs = translator.generate(
**inputs,
forced_bos_token_id=tokenizer.lang_code_to_id["ara_Arab"]
)
translated = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(f"Original: {text}")
print(f"Translated: {translated}")
العربية 🇸🇦 • الإنجليزية 🇬🇧 • الإسبانية 🇪🇸 • الفرنسية 🇫🇷 • الألمانية 🇩🇪 • الإيطالية 🇮🇹 • التركية 🇹🇷 • الروسية 🇷🇺 • الصينية 🇨🇳 • اليابانية 🇯🇵 • الكورية 🇰🇷 • البرتغالية 🇧🇷 • الهندية 🇮🇳
pip install transformers torch torchaudio openai-whisper huggingface_hub
| المهمة | CPU | GPU (T4) |
|---|---|---|
| تفريغ دقيقة صوت | ~30s | ~5s |
| ترجمة 100 كلمة | ~2s | ~0.3s |
MIT License - استخدام حر للأغراض التجارية وغير التجارية
للإبلاغ عن مشاكل أو اقتراحات: GitHub Issues
تم الإنشاء بـ ❤️ لخدمة المحتوى العربي
تاريخ الرفع: 2026-01-17