Spaces:
Paused
Paused
Multi language tts model
Browse files- __pycache__/tts_gen.cpython-312.pyc +0 -0
- tts_gen.py +1 -1
__pycache__/tts_gen.cpython-312.pyc
CHANGED
|
Binary files a/__pycache__/tts_gen.cpython-312.pyc and b/__pycache__/tts_gen.cpython-312.pyc differ
|
|
|
tts_gen.py
CHANGED
|
@@ -67,7 +67,7 @@ class TTSGenerator():
|
|
| 67 |
local_file = SILERO_LOCAL_PATH
|
| 68 |
|
| 69 |
if not os.path.isfile(local_file):
|
| 70 |
-
torch.hub.download_url_to_file('https://models.silero.ai/models/tts/
|
| 71 |
local_file)
|
| 72 |
self.model = torch.package.PackageImporter(local_file).load_pickle("tts_models", "model")
|
| 73 |
self.model.to(device)
|
|
|
|
| 67 |
local_file = SILERO_LOCAL_PATH
|
| 68 |
|
| 69 |
if not os.path.isfile(local_file):
|
| 70 |
+
torch.hub.download_url_to_file('https://models.silero.ai/models/tts/multi/v2_multi.pt',
|
| 71 |
local_file)
|
| 72 |
self.model = torch.package.PackageImporter(local_file).load_pickle("tts_models", "model")
|
| 73 |
self.model.to(device)
|