Create module.py
Browse files
module.py
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import os
|
2 |
+
import re
|
3 |
+
import random
|
4 |
+
from scipy.io.wavfile import write
|
5 |
+
from scipy.io.wavfile import read
|
6 |
+
import numpy as np
|
7 |
+
import gradio as gr
|
8 |
+
import yt_dlp
|
9 |
+
import subprocess
|
10 |
+
from pydub import AudioSegment
|
11 |
+
from audio_separator.separator import Separator
|
12 |
+
from lib.infer import infer_audio
|
13 |
+
import edge_tts
|
14 |
+
import tempfile
|
15 |
+
import anyio
|
16 |
+
from pathlib import Path
|
17 |
+
from lib.language_tts import language_dict
|
18 |
+
import os
|
19 |
+
import zipfile
|
20 |
+
import shutil
|
21 |
+
import urllib.request
|
22 |
+
import gdown
|
23 |
+
import subprocess
|
24 |
+
import time
|
25 |
+
from argparse import ArgumentParser
|