File size: 431 Bytes
ecdcfed ec56d65 ecdcfed |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
import sys
import io, os, stat
from zipfile import ZipFile
from pydub import AudioSegment
HF_TOKEN = os.environ.get("HF_TOKEN")
# Use never ffmpeg binary for Ubuntu20 to use denoising for microphone input
print("Export newer ffmpeg binary for denoise filter")
ZipFile("ffmpeg.zip").extractall()
print("Make ffmpeg binary executable")
st = os.stat("ffmpeg")
os.chmod("ffmpeg", st.st_mode | stat.S_IEXEC)
from TextGen import app
|