Add four voices: Female 1/2, Male 1/2; rotate examples across voices
Browse files- app.py +9 -4
- voices/female2.json +0 -0
- voices/male1.json +0 -0
- voices/male2.json +0 -0
app.py
CHANGED
|
@@ -754,7 +754,12 @@ def load_voice_style(style_paths: List[str]) -> Style:
|
|
| 754 |
|
| 755 |
RENIKUD_PATH = "renikud.onnx"
|
| 756 |
ONNX_MODELS_DIR = "onnx_models"
|
| 757 |
-
VOICES = {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 758 |
|
| 759 |
tts_models = {name: BlueTTS(ONNX_MODELS_DIR, style_json=path, renikud_path=RENIKUD_PATH) for name, path in VOICES.items()}
|
| 760 |
|
|
@@ -785,9 +790,9 @@ def _stats_html(proc_time, audio_dur, rtf):
|
|
| 785 |
|
| 786 |
EXAMPLES = [
|
| 787 |
["הכוח לשנות מתחיל ברגע שבו אתה מאמין שזה אפשרי!", "Female 1", "he"],
|
| 788 |
-
["The power to change begins the moment you believe it's possible!", "
|
| 789 |
-
["¡El poder de cambiar comienza en el momento en que crees que es posible!", "Female
|
| 790 |
-
["Il potere di cambiare inizia nel momento in cui credi che sia possibile!", "
|
| 791 |
["Die Kraft zur Veränderung beginnt in dem Moment, in dem du glaubst, dass es möglich ist!", "Female 1", "de"],
|
| 792 |
]
|
| 793 |
|
|
|
|
| 754 |
|
| 755 |
RENIKUD_PATH = "renikud.onnx"
|
| 756 |
ONNX_MODELS_DIR = "onnx_models"
|
| 757 |
+
VOICES = {
|
| 758 |
+
"Female 1": "voices/female1.json",
|
| 759 |
+
"Female 2": "voices/female2.json",
|
| 760 |
+
"Male 1": "voices/male1.json",
|
| 761 |
+
"Male 2": "voices/male2.json",
|
| 762 |
+
}
|
| 763 |
|
| 764 |
tts_models = {name: BlueTTS(ONNX_MODELS_DIR, style_json=path, renikud_path=RENIKUD_PATH) for name, path in VOICES.items()}
|
| 765 |
|
|
|
|
| 790 |
|
| 791 |
EXAMPLES = [
|
| 792 |
["הכוח לשנות מתחיל ברגע שבו אתה מאמין שזה אפשרי!", "Female 1", "he"],
|
| 793 |
+
["The power to change begins the moment you believe it's possible!", "Male 1", "en"],
|
| 794 |
+
["¡El poder de cambiar comienza en el momento en que crees que es posible!", "Female 2", "es"],
|
| 795 |
+
["Il potere di cambiare inizia nel momento in cui credi che sia possibile!", "Male 2", "it"],
|
| 796 |
["Die Kraft zur Veränderung beginnt in dem Moment, in dem du glaubst, dass es möglich ist!", "Female 1", "de"],
|
| 797 |
]
|
| 798 |
|
voices/female2.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
voices/male1.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
voices/male2.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|