wasmdashai/vits-ar
Model Card for Model ID
Model Details
Model Description
<!-- Provide a longer summary of what this model is. -->
An advanced text-to-speech (TTS) system specifically designed for the Arabic language, built on the VITS architecture and utilizing the pre-trained weights from Facebook's vits ara model. The model is capable of:
Generating natural and realistic speech: Producing high-quality Arabic speech that closely mimics human voices, preserving intonation and linguistic nuances. Understanding colloquial text: Processing text written in various Arabic dialects, including idiomatic expressions and local vocabulary.
Model Details VITS (Variational Inference with adversarial learning for end-to-end Text-to-Speech) is an end-to-end speech synthesis model that predicts a speech waveform conditional on an input text sequence. It is a conditional variational autoencoder (VAE) comprised of a posterior encoder, decoder, and conditional prior.
A set of spectrogram-based acoustic features are predicted by the flow-based module, which is formed of a Transformer-based text encoder and multiple coupling layers. The spectrogram is decoded using a stack of transposed convolutional layers, much in the same style as the HiFi-GAN vocoder. Motivated by the one-to-many nature of the TTS problem, where the same text input can be spoken in multiple ways, the model also includes a stochastic duration predictor, which allows the model to synthesise speech with different rhythms from the same input text.
Usage
MMS-TTS is available in the ๐ค Transformers library from version 4.33 onwards. To use this checkpoint, first install the latest version of the library:
pip install transformers[torch]Then, run inference with the following code-snippet:
from transformers import VitsModel, AutoTokenizer
import torch
model = VitsModel.from_pretrained("wasmdashai/vits-ar")
tokenizer = AutoTokenizer.from_pretrained("wasmdashai/vits-ar")
text = "ุงูุณูุงู
ุนูููู
ูุฑุญู
ุฉ ุงููู ูุจุฑูุงุชุฉ ู
ุง ุงูุฌุฏูุฏ ุ "
inputs = tokenizer(text, return_tensors="pt")
with torch.no_grad():
full_generation =model(**inputs)
full_generation_waveform = full_generation.waveform.cpu().numpy().reshape(-1)
from IPython.display import Audio
Audio(full_generation_waveform, rate=model.config.sampling_rate)
Contact
You can also email us at modelasg@gmail.com
ู ุฌู ูุนุฉ ูู ุงุฐุฌ ุชูููุฏ ุงูููุฌุงุช ุงูุนุฑุจูุฉ
ู ูุฏู ุฉ
ูุณุฑูุง ุฃู ูุนูู ุนู ุฅุตุฏุงุฑ ู ุฌู ูุนุฉ ู ู ูู ุงุฐุฌ ุชูููุฏ ุงูููุฌุงุช ุงูุนุฑุจูุฉ ูุฑูุจูุง. ุชู ุชุตู ูู ูุฐู ุงููู ุงุฐุฌ ุจุงุณุชุฎุฏุงู ุชูููุงุช ุงูุฐูุงุก ุงูุงุตุทูุงุนู ุงูู ุชูุฏู ุฉ ูุชูุฏูู ุชุฌุฑุจุฉ ุทุจูุนูุฉ ููุงูุนูุฉ ูู ุชุญููู ุงููุต ุฅูู ููุงู (Text-to-Speech) ุจู ุฎุชูู ุงูููุฌุงุช ุงูุนุฑุจูุฉ.
ุฌุฏูู ุงููู ุงุฐุฌ
ุงูุชูุงุตูู ุงููููุฉ
ุชุนุชู ุฏ ุฌู ูุน ุงููู ุงุฐุฌ ุนูู ุจููุฉ VITSุ ููู ูู ูุฐุฌ ุดุงู ู ูุชุญููู ุงููุต ุฅูู ููุงู ูุชูุญ ุชูููุฏ ู ูุฌุงุช ุตูุชูุฉ ูุงูุนูุฉ ุจูุงุกู ุนูู ุงูู ุฏุฎูุงุช ุงููุตูุฉ. ุชุญุชูู ุงููู ุงุฐุฌ ุนูู ู ุญููุงุช ูุชุญููู ุงููุต ูุชูููุฏ ุงูููุงู ุจูุงุกู ุนูู ุฎุตุงุฆุต ุงูุตูุช ุงูู ุญููุฉ ููู ููุฌุฉ.
ุงูุชุฑููุงุช ุงูู ุณุชูุจููุฉ
ุณูุชู ุชูุฏูู ุชุญุฏูุซุงุช ู ูุชุธู ุฉ ูุชุญุณูู ุฌูุฏุฉ ุงูุตูุช ูุฒูุงุฏุฉ ููุงุกุฉ ููู ุงูููุฌุงุช ุงูู ุฎุชููุฉ. ุชุงุจุนููุง ูู ุนุฑูุฉ ุงูู ุฒูุฏ ุญูู ุชูุงุฑูุฎ ุงูุฅุทูุงู ุงูุฏูููุฉ ููู ูู ูุฐุฌ.
Acknowledgements
This implementation is based on tts-arabic, VITS, Finetune VITS and Bert-VITS2. We appreciate their awesome work.
