notmax123 commited on
Commit
c9be629
·
1 Parent(s): 755ea39

Add four voices: Female 1/2, Male 1/2; rotate examples across voices

Browse files
Files changed (4) hide show
  1. app.py +9 -4
  2. voices/female2.json +0 -0
  3. voices/male1.json +0 -0
  4. 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 = {"Female 1": "voices/female1.json"}
 
 
 
 
 
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!", "Female 1", "en"],
789
- ["¡El poder de cambiar comienza en el momento en que crees que es posible!", "Female 1", "es"],
790
- ["Il potere di cambiare inizia nel momento in cui credi che sia possibile!", "Female 1", "it"],
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