Downloads · 30 days
6
5% of all-time downloads
meguscx/VITS-TH-Model
VITS-TH-Model is a machine learning model from meguscx. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
Downloads · 30 days
6
5% of all-time downloads
All-time downloads
122
Public
Parameters
36.3M
358 MB on disk
Likes
0
Public
Click a slice to open those files.
.wav214 MB · 59%
From the Hugging Face model README
import torch
from transformers import VitsTokenizer, VitsModel, set_seed
import scipy.io.wavfile
device = "cuda" if torch.cuda.is_available() else "cpu"
model = VitsModel.from_pretrained("meguscx/VITS-TH-Model").to(device)
tokenizer = VitsTokenizer.from_pretrained("meguscx/VITS-TH-Model")
text = "การเรียนรู้ภาษาใหม่ช่วยเปิดโลกทัศน์ให้กว้างขึ้น"
inputs = tokenizer(text=text, return_tensors="pt").to(device)
set_seed(456)
with torch.no_grad():
outputs = model(**inputs)
waveform = outputs.waveform[0].cpu().numpy()
scipy.io.wavfile.write(
"test.wav",
rate=model.config.sampling_rate,
data=waveform
)
print("Saved successfully.")
this model train 6 hr with only 1094 voice data (single speaker)
so voice maybe not too good and sometimes sound weird or unnatural
because dataset is small ;-;