Spaces:
Runtime error
Runtime error
Update download_models.py
Browse files- download_models.py +2 -2
download_models.py
CHANGED
|
@@ -56,11 +56,11 @@ def create_dummy_onnx_model(output_path: Path, num_symbols: int = 130):
|
|
| 56 |
print(f"Created dummy model: {output_path}")
|
| 57 |
|
| 58 |
|
| 59 |
-
def create_dummy_config(output_path: Path, language: str = "
|
| 60 |
"""Create a dummy model configuration"""
|
| 61 |
config = {
|
| 62 |
"audio": {"sample_rate": 22050},
|
| 63 |
-
"espeak": {"voice": "
|
| 64 |
"language": {"code": language},
|
| 65 |
"inference": {"noise_scale": 0.667, "length_scale": 1, "noise_w": 0.8},
|
| 66 |
"phoneme_type": "espeak" if language == "en" else "openjtalk",
|
|
|
|
| 56 |
print(f"Created dummy model: {output_path}")
|
| 57 |
|
| 58 |
|
| 59 |
+
def create_dummy_config(output_path: Path, language: str = "pl"):
|
| 60 |
"""Create a dummy model configuration"""
|
| 61 |
config = {
|
| 62 |
"audio": {"sample_rate": 22050},
|
| 63 |
+
"espeak": {"voice": "pl" if language == "pl" else "ja"},
|
| 64 |
"language": {"code": language},
|
| 65 |
"inference": {"noise_scale": 0.667, "length_scale": 1, "noise_w": 0.8},
|
| 66 |
"phoneme_type": "espeak" if language == "en" else "openjtalk",
|