Spaces:
Runtime error
Runtime error
Raivis Dejus
commited on
Commit
•
8981f17
1
Parent(s):
dd1fe32
Renaming model files
Browse files
README.md
CHANGED
@@ -9,7 +9,7 @@ tags:
|
|
9 |
- piper
|
10 |
- latvian
|
11 |
preload_from_hub:
|
12 |
-
- RaivisDejus/Piper-lv_LV-Aivars-medium
|
13 |
sdk_version: 4.26.0
|
14 |
app_file: app.py
|
15 |
pinned: false
|
|
|
9 |
- piper
|
10 |
- latvian
|
11 |
preload_from_hub:
|
12 |
+
- RaivisDejus/Piper-lv_LV-Aivars-medium lv_LV-Aivars-medium.onnx,lv_LV-Aivars-medium.onnx.json
|
13 |
sdk_version: 4.26.0
|
14 |
app_file: app.py
|
15 |
pinned: false
|
app.py
CHANGED
@@ -7,8 +7,8 @@ from piper import PiperVoice
|
|
7 |
|
8 |
|
9 |
def synthesize_speech(text, sentence_silence, length_scale):
|
10 |
-
model_path = hf_hub_download(repo_id="RaivisDejus/Piper-lv_LV-Aivars-medium", filename="
|
11 |
-
config_path = hf_hub_download(repo_id="RaivisDejus/Piper-lv_LV-Aivars-medium", filename="
|
12 |
|
13 |
voice = PiperVoice.load(model_path, config_path)
|
14 |
|
|
|
7 |
|
8 |
|
9 |
def synthesize_speech(text, sentence_silence, length_scale):
|
10 |
+
model_path = hf_hub_download(repo_id="RaivisDejus/Piper-lv_LV-Aivars-medium", filename="lv_LV-Aivars-medium.onnx")
|
11 |
+
config_path = hf_hub_download(repo_id="RaivisDejus/Piper-lv_LV-Aivars-medium", filename="lv_LV-Aivars-medium.onnx.json")
|
12 |
|
13 |
voice = PiperVoice.load(model_path, config_path)
|
14 |
|