CoolFace
Modelpublic

wasmdashai/vits-ar

sourceHugging Faceafl-3.0updated 2y agoView on Hugging Face
18likes49downloads
Model Card

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:

python
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-arู†ู…ูˆุฐุฌ ู„ุชุญูˆูŠู„ ุงู„ู†ุต ุฅู„ู‰ ูƒู„ุงู… ุจุงู„ู„ู‡ุฌุฉ ุงู„ูŠู…ู†ูŠุฉ ุจุชูุงุตูŠู„ ุฏู‚ูŠู‚ุฉ.ู…ุชูˆูุฑู…ุชูˆุณุท
ุงู„ู„ู‡ุฌุฉ ุงู„ูŠู…ู†ูŠุฉvits-ar-yeู†ู…ูˆุฐุฌ ู„ุชุญูˆูŠู„ ุงู„ู†ุต ุฅู„ู‰ ูƒู„ุงู… ุจุงู„ู„ู‡ุฌุฉ ุงู„ูŠู…ู†ูŠุฉ ุจุชูุงุตูŠู„ ุฏู‚ูŠู‚ุฉ.ู‚ุฑูŠุจุงู‹ู…ุชูˆุณุท
ุงู„ู„ู‡ุฌุฉ ุงู„ุณุนูˆุฏูŠุฉvits-ar-saู†ู…ูˆุฐุฌ ู„ุชุญูˆูŠู„ ุงู„ู†ุต ุฅู„ู‰ ูƒู„ุงู… ุจุงู„ู„ู‡ุฌุฉ ุงู„ุณุนูˆุฏูŠุฉ ุจุฌูˆุฏุฉ ุนุงู„ูŠุฉ ูˆุชูุงุตูŠู„ ุฏู‚ูŠู‚ุฉ.ู…ุชูˆูุฑู…ุชูˆุณุท
ุงู„ู„ู‡ุฌุฉ ุงู„ู…ุตุฑูŠุฉvits-ar-egู†ู…ูˆุฐุฌ ู„ุชุญูˆูŠู„ ุงู„ู†ุต ุฅู„ู‰ ูƒู„ุงู… ุจุงู„ู„ู‡ุฌุฉ ุงู„ู…ุตุฑูŠุฉ ุจุฃุณู„ูˆุจ ุทุจูŠุนูŠ ูˆุณู„ุณ.ู‚ุฑูŠุจุงู‹ู…ุชูˆุณุท
ุงู„ู„ู‡ุฌุฉ ุงู„ู„ุจู†ุงู†ูŠุฉvits-ar-lbู†ู…ูˆุฐุฌ ู…ุชุฎุตุต ููŠ ุงู„ู„ู‡ุฌุฉ ุงู„ู„ุจู†ุงู†ูŠุฉ ู„ุชูˆู„ูŠุฏ ูƒู„ุงู… ุจุชูุงุตูŠู„ ุฏู‚ูŠู‚ุฉ ูˆูˆุงู‚ุนูŠุฉ.ู‚ุฑูŠุจุงู‹ู…ุชูˆุณุท
ุงู„ู„ู‡ุฌุฉ ุงู„ู…ุบุฑุจูŠุฉvits-ar-maู†ู…ูˆุฐุฌ ู„ุชุญูˆูŠู„ ุงู„ู†ุต ุฅู„ู‰ ูƒู„ุงู… ุจุงู„ู„ู‡ุฌุฉ ุงู„ู…ุบุฑุจูŠุฉ ุจู‚ุฏุฑุฉ ุนู„ู‰ ูู‡ู… ุงู„ู…ุตุทู„ุญุงุช ุงู„ู…ุญู„ูŠุฉ.ู‚ุฑูŠุจุงู‹ู…ุชูˆุณุท
ุงู„ู„ู‡ุฌุฉ ุงู„ุฅู…ุงุฑุงุชูŠุฉvits-ar-aeู†ู…ูˆุฐุฌ ู„ุชุญูˆูŠู„ ุงู„ู†ุต ุฅู„ู‰ ูƒู„ุงู… ุจุงู„ู„ู‡ุฌุฉ ุงู„ุฅู…ุงุฑุงุชูŠุฉ ุจูˆุงู‚ุนูŠุฉ ูˆุชูุงุตูŠู„ ุฏู‚ูŠู‚ุฉ.ู‚ุฑูŠุจุงู‹ู…ุชูˆุณุท
ุงู„ู„ู‡ุฌุฉ ุงู„ุฃุฑุฏู†ูŠุฉvits-ar-joู†ู…ูˆุฐุฌ ู„ุชุญูˆูŠู„ ุงู„ู†ุต ุฅู„ู‰ ูƒู„ุงู… ุจุงู„ู„ู‡ุฌุฉ ุงู„ุฃุฑุฏู†ูŠุฉ ุจุฅุชู‚ุงู† ู„ู„ุชูุงุตูŠู„ ุงู„ุตูˆุชูŠุฉ.ู‚ุฑูŠุจุงู‹ู…ุชูˆุณุท
ุงู„ู„ู‡ุฌุฉ ุงู„ุนุฑุงู‚ูŠุฉvits-ar-iqู†ู…ูˆุฐุฌ ู„ุชูˆู„ูŠุฏ ุงู„ูƒู„ุงู… ุจุงู„ู„ู‡ุฌุฉ ุงู„ุนุฑุงู‚ูŠุฉ ุจุฏู‚ุฉ ููŠ ู†ุทู‚ ุงู„ูƒู„ู…ุงุช ูˆุงู„ุชุนุงุจูŠุฑ ุงู„ุดุงุฆุนุฉ.ู‚ุฑูŠุจุงู‹ู…ุชูˆุณุท
ุงู„ู„ู‡ุฌุฉ ุงู„ุณูˆุฑูŠุฉvits-ar-syู†ู…ูˆุฐุฌ ู„ุชุญูˆูŠู„ ุงู„ู†ุต ุฅู„ู‰ ูƒู„ุงู… ุจุงู„ู„ู‡ุฌุฉ ุงู„ุณูˆุฑูŠุฉ ุจูˆุถูˆุญ ูˆุตูˆุช ุทุจูŠุนูŠ.ู‚ุฑูŠุจุงู‹ู…ุชูˆุณุท
ุงู„ู„ู‡ุฌุฉ ุงู„ูู„ุณุทูŠู†ูŠุฉvits-ar-psู†ู…ูˆุฐุฌ ู„ุชุญูˆูŠู„ ุงู„ู†ุต ุฅู„ู‰ ูƒู„ุงู… ุจุงู„ู„ู‡ุฌุฉ ุงู„ูู„ุณุทูŠู†ูŠุฉ ุจุชูุงุตูŠู„ ุฏู‚ูŠู‚ุฉ.ู‚ุฑูŠุจุงู‹ู…ุชูˆุณุท
ุงู„ู„ู‡ุฌุฉ ุงู„ุณูˆุฏุงู†ูŠุฉvits-ar-sdู†ู…ูˆุฐุฌ ู„ุชุญูˆูŠู„ ุงู„ู†ุต ุฅู„ู‰ ูƒู„ุงู… ุจุงู„ู„ู‡ุฌุฉ ุงู„ุณูˆุฏุงู†ูŠุฉ ู…ุน ูู‡ู… ุงู„ู…ูุฑุฏุงุช ุงู„ู…ุญู„ูŠุฉ.ู‚ุฑูŠุจุงู‹ู…ุชูˆุณุท
ุงู„ู„ู‡ุฌุฉ ุงู„ุฌุฒุงุฆุฑูŠุฉvits-ar-dzู†ู…ูˆุฐุฌ ู„ุชุญูˆูŠู„ ุงู„ู†ุต ุฅู„ู‰ ูƒู„ุงู… ุจุงู„ู„ู‡ุฌุฉ ุงู„ุฌุฒุงุฆุฑูŠุฉ ุจุฏู‚ุฉ ูˆุฌูˆุฏุฉ ุนุงู„ูŠุฉ.ู‚ุฑูŠุจุงู‹ู…ุชูˆุณุท
ุงู„ู„ู‡ุฌุฉ ุงู„ุชูˆู†ุณูŠุฉvits-ar-tnู†ู…ูˆุฐุฌ ู„ุชุญูˆูŠู„ ุงู„ู†ุต ุฅู„ู‰ ูƒู„ุงู… ุจุงู„ู„ู‡ุฌุฉ ุงู„ุชูˆู†ุณูŠุฉ ุจุฅุชู‚ุงู† ู„ู„ุชูุงุตูŠู„ ุงู„ู…ุญู„ูŠุฉ.ู‚ุฑูŠุจุงู‹ู…ุชูˆุณุท
ุงู„ู„ู‡ุฌุฉ ุงู„ู„ูŠุจูŠุฉvits-ar-lyู†ู…ูˆุฐุฌ ู„ุชุญูˆูŠู„ ุงู„ู†ุต ุฅู„ู‰ ูƒู„ุงู… ุจุงู„ู„ู‡ุฌุฉ ุงู„ู„ูŠุจูŠุฉ ุจุฏู‚ุฉ ูˆูˆุงู‚ุนูŠุฉ ููŠ ุงู„ู†ุทู‚.ู‚ุฑูŠุจุงู‹ู…ุชูˆุณุท
ุงู„ู„ู‡ุฌุฉ ุงู„ุจุญุฑูŠู†ูŠุฉvits-ar-bhู†ู…ูˆุฐุฌ ู„ุชุญูˆูŠู„ ุงู„ู†ุต ุฅู„ู‰ ูƒู„ุงู… ุจุงู„ู„ู‡ุฌุฉ ุงู„ุจุญุฑูŠู†ูŠุฉ ุจุฌูˆุฏุฉ ุตูˆุช ุนุงู„ูŠุฉ.ู‚ุฑูŠุจุงู‹ู…ุชูˆุณุท
ุงู„ู„ู‡ุฌุฉ ุงู„ุนู…ุงู†ูŠุฉvits-ar-omู†ู…ูˆุฐุฌ ู„ุชุญูˆูŠู„ ุงู„ู†ุต ุฅู„ู‰ ูƒู„ุงู… ุจุงู„ู„ู‡ุฌุฉ ุงู„ุนู…ุงู†ูŠุฉ ุจุฏู‚ุฉ ูˆูˆุถูˆุญ ููŠ ุงู„ู†ุทู‚.ู‚ุฑูŠุจุงู‹ู…ุชูˆุณุท
ุงู„ู„ู‡ุฌุฉ ุงู„ู‚ุทุฑูŠุฉvits-ar-qaู†ู…ูˆุฐุฌ ู„ุชุญูˆูŠู„ ุงู„ู†ุต ุฅู„ู‰ ูƒู„ุงู… ุจุงู„ู„ู‡ุฌุฉ ุงู„ู‚ุทุฑูŠุฉ ุจุชูุงุตูŠู„ ุฏู‚ูŠู‚ุฉ ูˆูˆุงู‚ุนูŠุฉ.ู‚ุฑูŠุจุงู‹ู…ุชูˆุณุท
ุงู„ู„ู‡ุฌุฉ ุงู„ูƒูˆูŠุชูŠุฉvits-ar-kwู†ู…ูˆุฐุฌ ู„ุชุญูˆูŠู„ ุงู„ู†ุต ุฅู„ู‰ ูƒู„ุงู… ุจุงู„ู„ู‡ุฌุฉ ุงู„ูƒูˆูŠุชูŠุฉ ุจุฌูˆุฏุฉ ุนุงู„ูŠุฉ ูˆูˆุถูˆุญ.ู‚ุฑูŠุจุงู‹ู…ุชูˆุณุท
ุงู„ู„ู‡ุฌุฉ ุงู„ู…ูˆุฑูŠุชุงู†ูŠุฉvits-ar-mrู†ู…ูˆุฐุฌ ู„ุชุญูˆูŠู„ ุงู„ู†ุต ุฅู„ู‰ ูƒู„ุงู… ุจุงู„ู„ู‡ุฌุฉ ุงู„ู…ูˆุฑูŠุชุงู†ูŠุฉ ุจุชูุงุตูŠู„ ุฏู‚ูŠู‚ุฉ ูˆูˆุงู‚ุนูŠุฉ.ู‚ุฑูŠุจุงู‹ู…ุชูˆุณุท

ุงู„ุชูุงุตูŠู„ ุงู„ูู†ูŠุฉ

ุชุนุชู…ุฏ ุฌู…ูŠุน ุงู„ู†ู…ุงุฐุฌ ุนู„ู‰ ุจู†ูŠุฉ VITSุŒ ูˆู‡ูŠ ู†ู…ูˆุฐุฌ ุดุงู…ู„ ู„ุชุญูˆูŠู„ ุงู„ู†ุต ุฅู„ู‰ ูƒู„ุงู… ูŠุชูŠุญ ุชูˆู„ูŠุฏ ู…ูˆุฌุงุช ุตูˆุชูŠุฉ ูˆุงู‚ุนูŠุฉ ุจู†ุงุกู‹ ุนู„ู‰ ุงู„ู…ุฏุฎู„ุงุช ุงู„ู†ุตูŠุฉ. ุชุญุชูˆูŠ ุงู„ู†ู…ุงุฐุฌ ุนู„ู‰ ู…ุญูˆู„ุงุช ู„ุชุญู„ูŠู„ ุงู„ู†ุต ูˆุชูˆู„ูŠุฏ ุงู„ูƒู„ุงู… ุจู†ุงุกู‹ ุนู„ู‰ ุฎุตุงุฆุต ุงู„ุตูˆุช ุงู„ู…ุญู„ูŠุฉ ู„ูƒู„ ู„ู‡ุฌุฉ.

ุงู„ุชุฑู‚ูŠุงุช ุงู„ู…ุณุชู‚ุจู„ูŠุฉ

ุณูŠุชู… ุชู‚ุฏูŠู… ุชุญุฏูŠุซุงุช ู…ู†ุชุธู…ุฉ ู„ุชุญุณูŠู† ุฌูˆุฏุฉ ุงู„ุตูˆุช ูˆุฒูŠุงุฏุฉ ูƒูุงุกุฉ ูู‡ู… ุงู„ู„ู‡ุฌุงุช ุงู„ู…ุฎุชู„ูุฉ. ุชุงุจุนูˆู†ุง ู„ู…ุนุฑูุฉ ุงู„ู…ุฒูŠุฏ ุญูˆู„ ุชูˆุงุฑูŠุฎ ุงู„ุฅุทู„ุงู‚ ุงู„ุฏู‚ูŠู‚ุฉ ู„ูƒู„ ู†ู…ูˆุฐุฌ.

Acknowledgements

This implementation is based on tts-arabic, VITS, Finetune VITS and Bert-VITS2. We appreciate their awesome work.