Update README.md
Browse files
README.md
CHANGED
@@ -14,9 +14,9 @@ This repository contains the **Malayalam (mal)** language text-to-speech (TTS) m
|
|
14 |
|
15 |
## Model Details
|
16 |
|
17 |
-
|
18 |
|
19 |
-
The model's text encoder is built on Wav2Vec2 decoder, while the decoder is a VAE
|
20 |
|
21 |
Sura is trained end-to-end using a combination of losses from the variational lower bound and adversarial training techniques. During inference, the text encodings are up-sampled based on the predicted durations, and subsequently mapped into the waveform via the flow module and the VAE decoder. Due to the stochastic nature of the duration predictor, the model is non-deterministic and requires a fixed seed to produce identical speech outputs.
|
22 |
|
@@ -32,8 +32,8 @@ Then, run inference with the following code-snippet:
|
|
32 |
from transformers import VitsModel, AutoTokenizer
|
33 |
import torch
|
34 |
|
35 |
-
model = VitsModel.from_pretrained("aoxo/
|
36 |
-
tokenizer = AutoTokenizer.from_pretrained("
|
37 |
|
38 |
text = "കള്ളാ കടയാടി മോനെ"
|
39 |
inputs = tokenizer(text, return_tensors="pt")
|
|
|
14 |
|
15 |
## Model Details
|
16 |
|
17 |
+
Swaram (**S**tochastic **W**aveform **A**daptive **R**ecurrent **A**utoencoder for **M**alayalam) is an advanced speech synthesis model that generates speech waveforms conditioned on input text sequences. It is based on a conditional variational autoencoder (VAE) architecture.
|
18 |
|
19 |
+
The model's text encoder is built on Wav2Vec2 decoder, while the decoder is a VAE. A flow-based module predicts spectrogram-based acoustic features, which is composed of the Transformer-based Contextualizer and cascaded dense layers. The spectrogram is then transformed into a speech waveform using a stack of transposed convolutional layers. To capture the one-to-many nature of TTS, where the same text can be spoken in multiple ways, the model also includes a stochastic duration predictor, allowing for varied speech rhythms from the same text input.
|
20 |
|
21 |
Sura is trained end-to-end using a combination of losses from the variational lower bound and adversarial training techniques. During inference, the text encodings are up-sampled based on the predicted durations, and subsequently mapped into the waveform via the flow module and the VAE decoder. Due to the stochastic nature of the duration predictor, the model is non-deterministic and requires a fixed seed to produce identical speech outputs.
|
22 |
|
|
|
32 |
from transformers import VitsModel, AutoTokenizer
|
33 |
import torch
|
34 |
|
35 |
+
model = VitsModel.from_pretrained("aoxo/swaram")
|
36 |
+
tokenizer = AutoTokenizer.from_pretrained("aoxo/swaram")
|
37 |
|
38 |
text = "കള്ളാ കടയാടി മോനെ"
|
39 |
inputs = tokenizer(text, return_tensors="pt")
|