File size: 470 Bytes
01e655b |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
import json
from modules.speaker import speaker_mgr
data = json.load(open("./data/slct_voice_240605.json", "r"))
print("load speakers: ", len(data))
for id, spk in data.items():
print(id, spk["describe"])
name = f"spk_{id}"
describe = spk["describe"]
gender = spk["gender"]
speaker_mgr.create_speaker_from_tensor(
filename=name,
name=describe,
describe=describe,
gender=gender,
tensor=spk["tensor"],
)
|