datasets
Training and evaluation data, with the modality, task and licence stated up front. Listed live from the Hugging Face Hub.
mapalo-indextts-metadata1-v1IndexTTS-nano-codecgenshin_voices_5.6_sample_1_IndexTTSfrom datasets import load_dataset
ds = load_dataset("svjack/genshin_voices_5.6_sample_1_IndexTTS")
dss = ds["train"].filter(lambda x: x["speaker"] == "Eula" )
audio_decoder = dss[0]["reference_audio"]
import os
# 获取 _hf_encoded 属性
hf_encoded = audio_decoder._hf_encoded
with open(hf_encoded["path"], 'wb') as f:
f.write(hf_encoded["bytes"])
