Spaces:
Running
Running
Commit
·
9adb460
1
Parent(s):
678e3ae
small fixes
Browse files
model.py
CHANGED
|
@@ -114,10 +114,18 @@ def _get_vits_ljs(repo_id: str, speed: float) -> sherpa_onnx.OfflineTts:
|
|
| 114 |
|
| 115 |
|
| 116 |
@lru_cache(maxsize=10)
|
| 117 |
-
def
|
| 118 |
-
repo_id
|
| 119 |
-
|
| 120 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 121 |
n = len("vits-piper-")
|
| 122 |
name = repo_id.split("/")[0][n:]
|
| 123 |
|
|
@@ -267,7 +275,6 @@ german_models = {
|
|
| 267 |
"csukuangfj/vits-piper-de_DE-kerstin-low": _get_vits_piper_de_DE,
|
| 268 |
"csukuangfj/vits-piper-de_DE-pavoque-low": _get_vits_piper_de_DE,
|
| 269 |
"csukuangfj/vits-piper-de_DE-ramona-low": _get_vits_piper_de_DE,
|
| 270 |
-
"csukuangfj/vits-piper-de_DE-ramona-low": _get_vits_piper_de_DE,
|
| 271 |
"csukuangfj/vits-piper-de_DE-thorsten-low": _get_vits_piper_de_DE,
|
| 272 |
"csukuangfj/vits-piper-de_DE-thorsten-medium": _get_vits_piper_de_DE,
|
| 273 |
"csukuangfj/vits-piper-de_DE-thorsten-high": _get_vits_piper_de_DE,
|
|
|
|
| 114 |
|
| 115 |
|
| 116 |
@lru_cache(maxsize=10)
|
| 117 |
+
def _get_vits_piper_de_DE(repo_id: str, speed: float) -> sherpa_onnx.OfflineTts:
|
| 118 |
+
assert repo_id in (
|
| 119 |
+
"csukuangfj/vits-piper-de_DE-eva_k-x_low",
|
| 120 |
+
"csukuangfj/vits-piper-de_DE-karlsson-low",
|
| 121 |
+
"csukuangfj/vits-piper-de_DE-kerstin-low",
|
| 122 |
+
"csukuangfj/vits-piper-de_DE-pavoque-low",
|
| 123 |
+
"csukuangfj/vits-piper-de_DE-ramona-low",
|
| 124 |
+
"csukuangfj/vits-piper-de_DE-thorsten-low",
|
| 125 |
+
"csukuangfj/vits-piper-de_DE-thorsten-medium",
|
| 126 |
+
"csukuangfj/vits-piper-de_DE-thorsten-high",
|
| 127 |
+
"csukuangfj/vits-piper-de_DE-thorsten_emotional-medium",
|
| 128 |
+
)
|
| 129 |
n = len("vits-piper-")
|
| 130 |
name = repo_id.split("/")[0][n:]
|
| 131 |
|
|
|
|
| 275 |
"csukuangfj/vits-piper-de_DE-kerstin-low": _get_vits_piper_de_DE,
|
| 276 |
"csukuangfj/vits-piper-de_DE-pavoque-low": _get_vits_piper_de_DE,
|
| 277 |
"csukuangfj/vits-piper-de_DE-ramona-low": _get_vits_piper_de_DE,
|
|
|
|
| 278 |
"csukuangfj/vits-piper-de_DE-thorsten-low": _get_vits_piper_de_DE,
|
| 279 |
"csukuangfj/vits-piper-de_DE-thorsten-medium": _get_vits_piper_de_DE,
|
| 280 |
"csukuangfj/vits-piper-de_DE-thorsten-high": _get_vits_piper_de_DE,
|