Spaces:
Running
Running
Yurii Paniv
commited on
Commit
·
8f06cef
1
Parent(s):
5cc818d
Fix names
Browse files- app.py +4 -4
- crh_tts/tts.py +4 -4
app.py
CHANGED
@@ -12,9 +12,9 @@ from torch.cuda import is_available
|
|
12 |
|
13 |
|
14 |
class VoiceOption(Enum):
|
15 |
-
|
16 |
#Arslan = "Арслан (чоловічий) 👨"
|
17 |
-
|
18 |
#Abibulla = "Абібулла (чоловічий) 👨"
|
19 |
|
20 |
|
@@ -35,9 +35,9 @@ def tts(text: str, voice: str):
|
|
35 |
print("Time:", datetime.utcnow())
|
36 |
|
37 |
voice_mapping = {
|
38 |
-
VoiceOption.
|
39 |
#VoiceOption.Arslan.value: Voices.Arslan.value,
|
40 |
-
VoiceOption.
|
41 |
#VoiceOption.Abibulla.value: Voices.Abibulla.value,
|
42 |
}
|
43 |
|
|
|
12 |
|
13 |
|
14 |
class VoiceOption(Enum):
|
15 |
+
Sevil = "Севіль (жіночий) 👩"
|
16 |
#Arslan = "Арслан (чоловічий) 👨"
|
17 |
+
Eskandar = "Ескандер (чоловічий) 👨"
|
18 |
#Abibulla = "Абібулла (чоловічий) 👨"
|
19 |
|
20 |
|
|
|
35 |
print("Time:", datetime.utcnow())
|
36 |
|
37 |
voice_mapping = {
|
38 |
+
VoiceOption.Sevil.value: Voices.Sevil.value,
|
39 |
#VoiceOption.Arslan.value: Voices.Arslan.value,
|
40 |
+
VoiceOption.Eskandar.value: Voices.Eskandar.value,
|
41 |
#VoiceOption.Abibulla.value: Voices.Abibulla.value,
|
42 |
}
|
43 |
|
crh_tts/tts.py
CHANGED
@@ -10,10 +10,10 @@ from torch import no_grad
|
|
10 |
class Voices(Enum):
|
11 |
"""List of available voices for the model."""
|
12 |
|
13 |
-
Arslan = "arslan"
|
14 |
-
|
15 |
-
|
16 |
-
Abibulla = "abibulla"
|
17 |
|
18 |
|
19 |
class TTS:
|
|
|
10 |
class Voices(Enum):
|
11 |
"""List of available voices for the model."""
|
12 |
|
13 |
+
#Arslan = "arslan"
|
14 |
+
Sevil = "sevil"
|
15 |
+
Eskandar = "eskandar"
|
16 |
+
#Abibulla = "abibulla"
|
17 |
|
18 |
|
19 |
class TTS:
|