This repository contains the
Swaram (mal)
text-to-speech (TTS) model checkpoint.
Model Details
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.
Swaram's text encoder is built on top of the
Wav2Vec2 decoder
. A
VAE
is used as the decoder. 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.
Architecture
Usage
pip install --upgrade transformers accelerate
Then, run inference with the following code-snippet:
from transformers import VitsModel, AutoTokenizer
import torch
model = VitsModel.from_pretrained("aoxo/swaram")
tokenizer = AutoTokenizer.from_pretrained("aoxo/swaram")
text = "കള്ളാ കടയാടി മോനെ"
inputs = tokenizer(text, return_tensors="pt")
with torch.no_grad():
output = model(**inputs).waveform
The resulting waveform can be saved as a
.wav
file:
swaram huggingface.co is an AI model on huggingface.co that provides swaram's model effect (), which can be used instantly with this aoxo swaram model. huggingface.co supports a free trial of the swaram model, and also provides paid use of the swaram. Support call swaram model through api, including Node.js, Python, http.
swaram huggingface.co is an online trial and call api platform, which integrates swaram's modeling effects, including api services, and provides a free online trial of swaram, you can try swaram online for free by clicking the link below.
swaram is an open source model from GitHub that offers a free installation service, and any user can find swaram on GitHub to install. At the same time, huggingface.co provides the effect of swaram install, users can directly use swaram installed effect in huggingface.co for debugging and trial. It also supports api for free installation.