Spaces:
Running
Running
Yurii Paniv
commited on
Commit
·
5cc818d
1
Parent(s):
31daab7
Release v1.0.0
Browse files- app.py +6 -6
- crh_tts/tts.py +1 -1
app.py
CHANGED
@@ -13,9 +13,9 @@ from torch.cuda import is_available
|
|
13 |
|
14 |
class VoiceOption(Enum):
|
15 |
Nuri = "Севіль (жіночий) 👩"
|
16 |
-
Arslan = "Арслан (чоловічий) 👨"
|
17 |
Kemal = "Ескандер (чоловічий) 👨"
|
18 |
-
Abibulla = "Абібулла (чоловічий) 👨"
|
19 |
|
20 |
|
21 |
print(f"CUDA available? {is_available()}")
|
@@ -36,9 +36,9 @@ def tts(text: str, voice: str):
|
|
36 |
|
37 |
voice_mapping = {
|
38 |
VoiceOption.Nuri.value: Voices.Nuri.value,
|
39 |
-
VoiceOption.Arslan.value: Voices.Arslan.value,
|
40 |
VoiceOption.Kemal.value: Voices.Kemal.value,
|
41 |
-
VoiceOption.Abibulla.value: Voices.Abibulla.value,
|
42 |
}
|
43 |
|
44 |
speaker_name = voice_mapping[voice]
|
@@ -82,10 +82,10 @@ iface = gr.Interface(
|
|
82 |
["Selâm! İşler nasıl?", VoiceOption.Kemal.value],
|
83 |
[
|
84 |
"Qırımtatarlar üç subetnik gruppasından er birisiniñ (tatlar, noğaylar ve yalıboylular) öz şivesi bar.",
|
85 |
-
VoiceOption.
|
86 |
],
|
87 |
["Селям! Ишлер насыл?", VoiceOption.Nuri.value],
|
88 |
-
["Selâm! 123456789", VoiceOption.
|
89 |
],
|
90 |
)
|
91 |
iface.launch()
|
|
|
13 |
|
14 |
class VoiceOption(Enum):
|
15 |
Nuri = "Севіль (жіночий) 👩"
|
16 |
+
#Arslan = "Арслан (чоловічий) 👨"
|
17 |
Kemal = "Ескандер (чоловічий) 👨"
|
18 |
+
#Abibulla = "Абібулла (чоловічий) 👨"
|
19 |
|
20 |
|
21 |
print(f"CUDA available? {is_available()}")
|
|
|
36 |
|
37 |
voice_mapping = {
|
38 |
VoiceOption.Nuri.value: Voices.Nuri.value,
|
39 |
+
#VoiceOption.Arslan.value: Voices.Arslan.value,
|
40 |
VoiceOption.Kemal.value: Voices.Kemal.value,
|
41 |
+
#VoiceOption.Abibulla.value: Voices.Abibulla.value,
|
42 |
}
|
43 |
|
44 |
speaker_name = voice_mapping[voice]
|
|
|
82 |
["Selâm! İşler nasıl?", VoiceOption.Kemal.value],
|
83 |
[
|
84 |
"Qırımtatarlar üç subetnik gruppasından er birisiniñ (tatlar, noğaylar ve yalıboylular) öz şivesi bar.",
|
85 |
+
VoiceOption.Nuri.value,
|
86 |
],
|
87 |
["Селям! Ишлер насыл?", VoiceOption.Nuri.value],
|
88 |
+
["Selâm! 123456789", VoiceOption.Kemal.value],
|
89 |
],
|
90 |
)
|
91 |
iface.launch()
|
crh_tts/tts.py
CHANGED
@@ -52,7 +52,7 @@ class TTS:
|
|
52 |
def __setup_cache(self, use_cuda=False):
|
53 |
"""Downloads models and stores them into `cache_folder`. By default stores in current directory."""
|
54 |
print("downloading uk/crh/vits-tts")
|
55 |
-
release_number = "
|
56 |
model_link = f"https://github.com/robinhad/qirimtatar-tts/releases/download/{release_number}/model.pth"
|
57 |
config_link = f"https://github.com/robinhad/qirimtatar-tts/releases/download/{release_number}/config.json"
|
58 |
speakers_link = f"https://github.com/robinhad/qirimtatar-tts/releases/download/{release_number}/speakers.pth"
|
|
|
52 |
def __setup_cache(self, use_cuda=False):
|
53 |
"""Downloads models and stores them into `cache_folder`. By default stores in current directory."""
|
54 |
print("downloading uk/crh/vits-tts")
|
55 |
+
release_number = "v1.0.0"
|
56 |
model_link = f"https://github.com/robinhad/qirimtatar-tts/releases/download/{release_number}/model.pth"
|
57 |
config_link = f"https://github.com/robinhad/qirimtatar-tts/releases/download/{release_number}/config.json"
|
58 |
speakers_link = f"https://github.com/robinhad/qirimtatar-tts/releases/download/{release_number}/speakers.pth"
|