Use two voices only (Female/Male); drop female2 and male2
Browse files- README.md +6 -8
- app.py +8 -10
- voices/female2.json +0 -0
- voices/male2.json +0 -0
README.md
CHANGED
|
@@ -21,14 +21,12 @@ Interactive demo for **[BlueTTS](https://github.com/maxmelichov/BlueTTS)**: fast
|
|
| 21 |
|
| 22 |
## Voices
|
| 23 |
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
| Voice
|
| 27 |
-
| ------
|
| 28 |
-
| Female
|
| 29 |
-
|
|
| 30 |
-
| Male 1 | `voices/male1.json` |
|
| 31 |
-
| Male 2 | `voices/male2.json` |
|
| 32 |
|
| 33 |
## Implementation note
|
| 34 |
|
|
|
|
| 21 |
|
| 22 |
## Voices
|
| 23 |
|
| 24 |
+
Two built-in speaker styles (pre-extracted style JSON):
|
| 25 |
+
|
| 26 |
+
| Voice | File |
|
| 27 |
+
| ------ | ----------------------- |
|
| 28 |
+
| Female | `voices/female1.json` |
|
| 29 |
+
| Male | `voices/male1.json` |
|
|
|
|
|
|
|
| 30 |
|
| 31 |
## Implementation note
|
| 32 |
|
app.py
CHANGED
|
@@ -759,10 +759,8 @@ def load_voice_style(style_paths: List[str]) -> Style:
|
|
| 759 |
RENIKUD_PATH = "renikud.onnx"
|
| 760 |
ONNX_MODELS_DIR = "onnx_models"
|
| 761 |
VOICES = {
|
| 762 |
-
"Female
|
| 763 |
-
"
|
| 764 |
-
"Male 1": "voices/male1.json",
|
| 765 |
-
"Male 2": "voices/male2.json",
|
| 766 |
}
|
| 767 |
|
| 768 |
tts_models = {name: BlueTTS(ONNX_MODELS_DIR, style_json=path, renikud_path=RENIKUD_PATH) for name, path in VOICES.items()}
|
|
@@ -793,11 +791,11 @@ def _stats_html(proc_time, audio_dur, rtf):
|
|
| 793 |
</div>"""
|
| 794 |
|
| 795 |
EXAMPLES = [
|
| 796 |
-
["The power to change begins the moment you believe it's possible!", "Female
|
| 797 |
-
["הכוח לשנות מתחיל ברגע שבו אתה מאמין שזה אפשרי!", "Male
|
| 798 |
-
["¡El poder de cambiar comienza en el momento en que crees que es posible!", "Female
|
| 799 |
-
["Il potere di cambiare inizia nel momento in cui credi che sia possibile!", "Male
|
| 800 |
-
["Die Kraft zur Veränderung beginnt in dem Moment, in dem du glaubst, dass es möglich ist!", "Female
|
| 801 |
]
|
| 802 |
|
| 803 |
def _load_font_face() -> str:
|
|
@@ -1001,7 +999,7 @@ with gr.Blocks(title="BlueTTS — Multilingual TTS") as demo:
|
|
| 1001 |
)
|
| 1002 |
with gr.Column(elem_classes="ctrl-voice"):
|
| 1003 |
voice_input = gr.Dropdown(
|
| 1004 |
-
choices=list(VOICES.keys()), value="Female
|
| 1005 |
)
|
| 1006 |
with gr.Row(elem_classes="ctrl-row2"):
|
| 1007 |
with gr.Column(elem_classes="ctrl-steps"):
|
|
|
|
| 759 |
RENIKUD_PATH = "renikud.onnx"
|
| 760 |
ONNX_MODELS_DIR = "onnx_models"
|
| 761 |
VOICES = {
|
| 762 |
+
"Female": "voices/female1.json",
|
| 763 |
+
"Male": "voices/male1.json",
|
|
|
|
|
|
|
| 764 |
}
|
| 765 |
|
| 766 |
tts_models = {name: BlueTTS(ONNX_MODELS_DIR, style_json=path, renikud_path=RENIKUD_PATH) for name, path in VOICES.items()}
|
|
|
|
| 791 |
</div>"""
|
| 792 |
|
| 793 |
EXAMPLES = [
|
| 794 |
+
["The power to change begins the moment you believe it's possible!", "Female", "en"],
|
| 795 |
+
["הכוח לשנות מתחיל ברגע שבו אתה מאמין שזה אפשרי!", "Male", "he"],
|
| 796 |
+
["¡El poder de cambiar comienza en el momento en que crees que es posible!", "Female", "es"],
|
| 797 |
+
["Il potere di cambiare inizia nel momento in cui credi che sia possibile!", "Male", "it"],
|
| 798 |
+
["Die Kraft zur Veränderung beginnt in dem Moment, in dem du glaubst, dass es möglich ist!", "Female", "de"],
|
| 799 |
]
|
| 800 |
|
| 801 |
def _load_font_face() -> str:
|
|
|
|
| 999 |
)
|
| 1000 |
with gr.Column(elem_classes="ctrl-voice"):
|
| 1001 |
voice_input = gr.Dropdown(
|
| 1002 |
+
choices=list(VOICES.keys()), value="Female", label="Voice",
|
| 1003 |
)
|
| 1004 |
with gr.Row(elem_classes="ctrl-row2"):
|
| 1005 |
with gr.Column(elem_classes="ctrl-steps"):
|
voices/female2.json
DELETED
|
The diff for this file is too large to render.
See raw diff
|
|
|
voices/male2.json
DELETED
|
The diff for this file is too large to render.
See raw diff
|
|
|