This repository provides a text to unit model form mhubert and trained with bart model.
The model was trained on the LibriSpeech ASR dataset for the English language and
Train epoch 13:
WER:30.41
CER: 20.22
Hubert Code TTS Example
import asrp
import nlp2
import IPython.display as ipd
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
nlp2.download_file(
'https://dl.fbaipublicfiles.com/fairseq/speech_to_speech/vocoder/code_hifigan/mhubert_vp_en_es_fr_it3_400k_layer11_km1000_lj/g_00500000',
'./')
tokenizer = AutoTokenizer.from_pretrained("voidful/mhubert-unit-tts")
model = AutoModelForSeq2SeqLM.from_pretrained("voidful/mhubert-unit-tts")
model.eval()
cs = asrp.Code2Speech(tts_checkpoint='./g_00500000', vocoder='hifigan')
inputs = tokenizer(["The quick brown fox jumps over the lazy dog."], return_tensors="pt")
code = tokenizer.batch_decode(model.generate(**inputs,max_length=1024))[0]
code = [int(i) for i in code.replace("</s>","").replace("<s>","").split("v_tok_")[1:]]
print(code)
ipd.Audio(data=cs(code), autoplay=False, rate=cs.sample_rate)
Datasets
The model was trained on the LibriSpeech ASR dataset for the English language.
Language
The model is trained for the English language.
Metrics
The model's performance is evaluated using Word Error Rate (WER).
Tags
The model can be tagged with "hubert" and "tts".
Runs of voidful mhubert-unit-tts on huggingface.co
14
Total runs
0
24-hour runs
0
3-day runs
4
7-day runs
11
30-day runs
More Information About mhubert-unit-tts huggingface.co Model
mhubert-unit-tts huggingface.co
mhubert-unit-tts huggingface.co is an AI model on huggingface.co that provides mhubert-unit-tts's model effect (), which can be used instantly with this voidful mhubert-unit-tts model. huggingface.co supports a free trial of the mhubert-unit-tts model, and also provides paid use of the mhubert-unit-tts. Support call mhubert-unit-tts model through api, including Node.js, Python, http.
mhubert-unit-tts huggingface.co is an online trial and call api platform, which integrates mhubert-unit-tts's modeling effects, including api services, and provides a free online trial of mhubert-unit-tts, you can try mhubert-unit-tts online for free by clicking the link below.
voidful mhubert-unit-tts online free url in huggingface.co:
mhubert-unit-tts is an open source model from GitHub that offers a free installation service, and any user can find mhubert-unit-tts on GitHub to install. At the same time, huggingface.co provides the effect of mhubert-unit-tts install, users can directly use mhubert-unit-tts installed effect in huggingface.co for debugging and trial. It also supports api for free installation.