Spaces:
Running
Running
Delete build.py
Browse files
build.py
DELETED
@@ -1,17 +0,0 @@
|
|
1 |
-
import os, stat
|
2 |
-
from zipfile import ZipFile
|
3 |
-
|
4 |
-
# Use never ffmpeg binary for Ubuntu20 to use denoising for microphone input
|
5 |
-
print("Export newer ffmpeg binary for denoise filter")
|
6 |
-
ZipFile("ffmpeg.zip").extractall()
|
7 |
-
print("Make ffmpeg binary executable")
|
8 |
-
st = os.stat("ffmpeg")
|
9 |
-
os.chmod("ffmpeg", st.st_mode | stat.S_IEXEC)
|
10 |
-
|
11 |
-
# This will trigger downloading model
|
12 |
-
print("Downloading if not downloaded Coqui XTTS V2")
|
13 |
-
from TTS.utils.manage import ModelManager
|
14 |
-
|
15 |
-
model_name = "tts_models/multilingual/multi-dataset/xtts_v2"
|
16 |
-
ModelManager().download_model(model_name)
|
17 |
-
print("XTTS downloaded")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|