Spaces:
Runtime error
Runtime error
Update coqui.py
Browse files
coqui.py
CHANGED
|
@@ -35,6 +35,13 @@ from TTS.tts.models.xtts import Xtts
|
|
| 35 |
from TTS.utils.generic_utils import get_user_data_dir
|
| 36 |
from huggingface_hub import HfApi
|
| 37 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 38 |
HF_TOKEN = os.environ.get("HF_TOKEN")
|
| 39 |
if not HF_TOKEN:
|
| 40 |
raise ValueError("HF_TOKEN environment variable is not set")
|
|
|
|
| 35 |
from TTS.utils.generic_utils import get_user_data_dir
|
| 36 |
from huggingface_hub import HfApi
|
| 37 |
|
| 38 |
+
# Use never ffmpeg binary for Ubuntu20 to use denoising for microphone input
|
| 39 |
+
print("Export newer ffmpeg binary for denoise filter")
|
| 40 |
+
ZipFile("ffmpeg.zip").extractall()
|
| 41 |
+
print("Make ffmpeg binary executable")
|
| 42 |
+
st = os.stat("ffmpeg")
|
| 43 |
+
os.chmod("ffmpeg", st.st_mode | stat.S_IEXEC)
|
| 44 |
+
|
| 45 |
HF_TOKEN = os.environ.get("HF_TOKEN")
|
| 46 |
if not HF_TOKEN:
|
| 47 |
raise ValueError("HF_TOKEN environment variable is not set")
|