hc = HubertCode("facebook/hubert-large-ll60k", './km_feat_100_layer_20', 20)
voice_ids = hc('./sample1.flac')
bart model
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
tokenizer = AutoTokenizer.from_pretrained("voidful/asr_hubert_cluster_bart_base")
model = AutoModelForSeq2SeqLM.from_pretrained("voidful/asr_hubert_cluster_bart_base")
generate output
gen_output = model.generate(input_ids=tokenizer("".join([f":vtok{i}:"for i in voice_ids]),return_tensors='pt').input_ids,max_length=1024)
print(tokenizer.decode(gen_output[0], skip_special_tokens=True))
Result
going along slushy country roads and speaking to damp audience in drifty school rooms day after day for a fortnight he'll have to put in an appearance at some place of worship on sunday morning and he can come to ask immediately afterwards
Runs of voidful asr_hubert_cluster_bart_base on huggingface.co
21
Total runs
0
24-hour runs
-1
3-day runs
-2
7-day runs
7
30-day runs
More Information About asr_hubert_cluster_bart_base huggingface.co Model
More asr_hubert_cluster_bart_base license Visit here:
asr_hubert_cluster_bart_base huggingface.co is an AI model on huggingface.co that provides asr_hubert_cluster_bart_base's model effect (), which can be used instantly with this voidful asr_hubert_cluster_bart_base model. huggingface.co supports a free trial of the asr_hubert_cluster_bart_base model, and also provides paid use of the asr_hubert_cluster_bart_base. Support call asr_hubert_cluster_bart_base model through api, including Node.js, Python, http.
asr_hubert_cluster_bart_base huggingface.co is an online trial and call api platform, which integrates asr_hubert_cluster_bart_base's modeling effects, including api services, and provides a free online trial of asr_hubert_cluster_bart_base, you can try asr_hubert_cluster_bart_base online for free by clicking the link below.
voidful asr_hubert_cluster_bart_base online free url in huggingface.co:
asr_hubert_cluster_bart_base is an open source model from GitHub that offers a free installation service, and any user can find asr_hubert_cluster_bart_base on GitHub to install. At the same time, huggingface.co provides the effect of asr_hubert_cluster_bart_base install, users can directly use asr_hubert_cluster_bart_base installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
asr_hubert_cluster_bart_base install url in huggingface.co: