Spaces:
Running
Running
Davit
commited on
Commit
·
75b5a2d
1
Parent(s):
4e52f04
Use en_us bryce based model
Browse files
app.py
CHANGED
@@ -7,8 +7,8 @@ from piper import PiperVoice
|
|
7 |
from transformers import pipeline
|
8 |
import typing
|
9 |
|
10 |
-
model_path = hf_hub_download(repo_id="davit312/piper-TTS-Armenian", filename="
|
11 |
-
config_path = hf_hub_download(repo_id="davit312/piper-TTS-Armenian", filename="
|
12 |
voice = PiperVoice.load(model_path, config_path)
|
13 |
|
14 |
|
@@ -42,4 +42,4 @@ with gr.Blocks(theme=gr.themes.Base()) as blocks:
|
|
42 |
|
43 |
submit_button.click(synthesize_speech, inputs=input_text, outputs=[output_audio, output_text])
|
44 |
# Run the app
|
45 |
-
blocks.launch()
|
|
|
7 |
from transformers import pipeline
|
8 |
import typing
|
9 |
|
10 |
+
model_path = hf_hub_download(repo_id="davit312/piper-TTS-Armenian", filename="v3/hy_AM-gor-medium.onnx")
|
11 |
+
config_path = hf_hub_download(repo_id="davit312/piper-TTS-Armenian", filename="v3/hy_AM-gor-medium.onnx.json")
|
12 |
voice = PiperVoice.load(model_path, config_path)
|
13 |
|
14 |
|
|
|
42 |
|
43 |
submit_button.click(synthesize_speech, inputs=input_text, outputs=[output_audio, output_text])
|
44 |
# Run the app
|
45 |
+
blocks.launch()
|