Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,13 @@
|
|
1 |
# !git clone https://github.com/Edresson/Coqui-TTS -b multilingual-torchaudio-SE TTS
|
2 |
|
3 |
-
from TTS.
|
4 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
|
6 |
import os
|
7 |
import shutil
|
|
|
1 |
# !git clone https://github.com/Edresson/Coqui-TTS -b multilingual-torchaudio-SE TTS
|
2 |
|
3 |
+
from TTS.utils.manage import ModelManager
|
4 |
+
from TTS.utils.synthesizer import Synthesizer
|
5 |
+
|
6 |
+
manager = ModelManager()
|
7 |
+
model_path, config_path, model_item = manager.download_model("tts_models/zh-CN/baker/tacotron2-DDC-GST")
|
8 |
+
synthesizer = Synthesizer(
|
9 |
+
model_path, config_path, None, None, None,
|
10 |
+
)
|
11 |
|
12 |
import os
|
13 |
import shutil
|