Kamtera commited on
Commit
3c0e2b9
1 Parent(s): 4e83b5e

Upload app.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +19 -12
app.py CHANGED
@@ -7,10 +7,13 @@ from TTS.utils.manage import ModelManager
7
  from TTS.utils.synthesizer import Synthesizer
8
 
9
  MODEL_NAMES=[
 
 
10
  "vits-male",
11
- "vits-female",
12
  "glowtts-male",
13
- "glowtts-female"
 
14
  ]
15
  MAX_TXT_LEN = 800
16
  model_path = os.getcwd() + "/best_model.pth"
@@ -21,9 +24,12 @@ config_path = os.getcwd() + "/config.json"
21
  from TTS.utils.download import download_url
22
  modelInfo=[
23
  ["vits-male","best_model_65633.pth","config-0.json","https://huggingface.co/Kamtera/persian-tts-male-vits/resolve/main/"],
24
- ["vits-female","checkpoint_48000.pth","config-2.json","https://huggingface.co/Kamtera/persian-tts-female-vits/resolve/main/"],
25
  ["glowtts-male","best_model_77797.pth","config-1.json","https://huggingface.co/Kamtera/persian-tts-male-glow_tts/resolve/main/"],
26
- ["glowtts-female","best_model.pth","config.json","https://huggingface.co/Kamtera/persian-tts-female-glow_tts/resolve/main/"]
 
 
 
27
  ]
28
 
29
  for d in modelInfo:
@@ -62,15 +68,16 @@ This is a demo of persian text to speech model.
62
  **Github : https://github.com/karim23657/Persian-tts-coqui **
63
 
64
  Models can be found here: <br>
65
- https://huggingface.co/Kamtera/persian-tts-female-vits <br>
66
- https://huggingface.co/Kamtera/persian-tts-male-vits <br>
67
- https://huggingface.co/Kamtera/persian-tts-male-glow_tts <br>
68
- https://huggingface.co/Kamtera/persian-tts-female-glow_tts <br>
69
-
70
- Models trained on these datasets : <br>
71
- https://www.kaggle.com/datasets/magnoliasis/persian-tts-dataset <br>
72
- https://www.kaggle.com/datasets/magnoliasis/persian-tts-dataset-famale <br>
73
 
 
 
 
 
 
 
 
 
 
74
 
75
 
76
  """
 
7
  from TTS.utils.synthesizer import Synthesizer
8
 
9
  MODEL_NAMES=[
10
+ "vits male1 (best)",
11
+ "vits female (best)",
12
  "vits-male",
13
+ "vits female1",
14
  "glowtts-male",
15
+ "glowtts-female",
16
+ "female tacotron2"
17
  ]
18
  MAX_TXT_LEN = 800
19
  model_path = os.getcwd() + "/best_model.pth"
 
24
  from TTS.utils.download import download_url
25
  modelInfo=[
26
  ["vits-male","best_model_65633.pth","config-0.json","https://huggingface.co/Kamtera/persian-tts-male-vits/resolve/main/"],
27
+ ["vits female (best)","checkpoint_48000.pth","config-2.json","https://huggingface.co/Kamtera/persian-tts-female-vits/resolve/main/"],
28
  ["glowtts-male","best_model_77797.pth","config-1.json","https://huggingface.co/Kamtera/persian-tts-male-glow_tts/resolve/main/"],
29
+ ["glowtts-female","best_model.pth","config.json","https://huggingface.co/Kamtera/persian-tts-female-glow_tts/resolve/main/"],
30
+ ["vits male1 (best)","checkpoint_88000.pth","config.json","https://huggingface.co/Kamtera/persian-tts-male1-vits/resolve/main/"],
31
+ ["vits female1","checkpoint_50000.pth","config.json","https://huggingface.co/Kamtera/persian-tts-female1-vits/resolve/main/"]
32
+ ["female tacotron2","checkpoint_313000.pth","config-2.json","https://huggingface.co/Kamtera/persian-tts-female-tacotron2/resolve/main/"]
33
  ]
34
 
35
  for d in modelInfo:
 
68
  **Github : https://github.com/karim23657/Persian-tts-coqui **
69
 
70
  Models can be found here: <br>
 
 
 
 
 
 
 
 
71
 
72
+ |Model|Dataset|
73
+ |----|------|
74
+ |[vits female (best)](https://huggingface.co/Kamtera/persian-tts-female-vits)|[persian-tts-dataset-famale](https://www.kaggle.com/datasets/magnoliasis/persian-tts-dataset-famale)|
75
+ |[vits male1 (best)](https://huggingface.co/Kamtera/persian-tts-male1-vits)|[persian-tts-dataset-male](https://www.kaggle.com/datasets/magnoliasis/persian-tts-dataset-male)|
76
+ |[vits female1](https://huggingface.co/Kamtera/persian-tts-female1-vits)|[ParsiGoo](https://github.com/karim23657/ParsiGoo)|
77
+ |[vits male](https://huggingface.co/Kamtera/persian-tts-male-vits)|[persian-tts-dataset](https://www.kaggle.com/datasets/magnoliasis/persian-tts-dataset)|
78
+ |[glowtts female](https://huggingface.co/Kamtera/persian-tts-female-glow_tts)|[persian-tts-dataset-famale](https://www.kaggle.com/datasets/magnoliasis/persian-tts-dataset-famale)|
79
+ |[glowtts male](https://huggingface.co/Kamtera/persian-tts-male-glow_tts)|[persian-tts-dataset](https://www.kaggle.com/datasets/magnoliasis/persian-tts-dataset)|
80
+ |[tacotron2 female](https://huggingface.co/Kamtera/persian-tts-female-tacotron2)|[persian-tts-dataset-famale](https://www.kaggle.com/datasets/magnoliasis/persian-tts-dataset-famale)|
81
 
82
 
83
  """