Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -6,8 +6,8 @@ from huggingface_hub import hf_hub_download
|
|
6 |
from piper import PiperVoice
|
7 |
|
8 |
def synthesize_speech(text):
|
9 |
-
model_path = hf_hub_download(repo_id="aigmixer/speaker_00", filename="
|
10 |
-
config_path = hf_hub_download(repo_id="aigmixer/speaker_00", filename="
|
11 |
voice = PiperVoice.load(model_path, config_path)
|
12 |
|
13 |
# Create an in-memory buffer for the WAV file
|
|
|
6 |
from piper import PiperVoice
|
7 |
|
8 |
def synthesize_speech(text):
|
9 |
+
model_path = hf_hub_download(repo_id="aigmixer/speaker_00", filename="speaker_00_model.onnx")
|
10 |
+
config_path = hf_hub_download(repo_id="aigmixer/speaker_00", filename="speaker_00_model.onnx.json")
|
11 |
voice = PiperVoice.load(model_path, config_path)
|
12 |
|
13 |
# Create an in-memory buffer for the WAV file
|