Add C++ and Python API for Kokoro 1.0 multilingual TTS model (#1795)

This commit is contained in:
Fangjun Kuang
2025-02-06 22:57:13 +08:00
committed by GitHub
parent 08cefe8488
commit c84a833863
20 changed files with 819 additions and 39 deletions

View File

@@ -71,7 +71,7 @@ def main():
with open("voices.bin", "wb") as f:
for _, speaker in id2speaker.items():
m = torch.load(
f"{speaker}.pt",
f"voices/{speaker}.pt",
weights_only=True,
map_location="cpu",
).numpy()