Skip to content

Commit

Permalink
Release v1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
robinhad committed Nov 21, 2022
1 parent 31daab7 commit 5cc818d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@

class VoiceOption(Enum):
Nuri = "Севіль (жіночий) 👩"
Arslan = "Арслан (чоловічий) 👨"
#Arslan = "Арслан (чоловічий) 👨"
Kemal = "Ескандер (чоловічий) 👨"
Abibulla = "Абібулла (чоловічий) 👨"
#Abibulla = "Абібулла (чоловічий) 👨"


print(f"CUDA available? {is_available()}")
Expand All @@ -36,9 +36,9 @@ def tts(text: str, voice: str):

voice_mapping = {
VoiceOption.Nuri.value: Voices.Nuri.value,
VoiceOption.Arslan.value: Voices.Arslan.value,
#VoiceOption.Arslan.value: Voices.Arslan.value,
VoiceOption.Kemal.value: Voices.Kemal.value,
VoiceOption.Abibulla.value: Voices.Abibulla.value,
#VoiceOption.Abibulla.value: Voices.Abibulla.value,
}

speaker_name = voice_mapping[voice]
Expand Down Expand Up @@ -82,10 +82,10 @@ def tts(text: str, voice: str):
["Selâm! İşler nasıl?", VoiceOption.Kemal.value],
[
"Qırımtatarlar üç subetnik gruppasından er birisiniñ (tatlar, noğaylar ve yalıboylular) öz şivesi bar.",
VoiceOption.Arslan.value,
VoiceOption.Nuri.value,
],
["Селям! Ишлер насыл?", VoiceOption.Nuri.value],
["Selâm! 123456789", VoiceOption.Abibulla.value],
["Selâm! 123456789", VoiceOption.Kemal.value],
],
)
iface.launch()
2 changes: 1 addition & 1 deletion crh_tts/tts.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def tts(self, text: str, voice: str, output_fp=BytesIO()):
def __setup_cache(self, use_cuda=False):
"""Downloads models and stores them into `cache_folder`. By default stores in current directory."""
print("downloading uk/crh/vits-tts")
release_number = "v0.0.2"
release_number = "v1.0.0"
model_link = f"https://github.com/robinhad/qirimtatar-tts/releases/download/{release_number}/model.pth"
config_link = f"https://github.com/robinhad/qirimtatar-tts/releases/download/{release_number}/config.json"
speakers_link = f"https://github.com/robinhad/qirimtatar-tts/releases/download/{release_number}/speakers.pth"
Expand Down

0 comments on commit 5cc818d

Please sign in to comment.