Spaces:
Runtime error
Runtime error
Commit
·
b31036b
1
Parent(s):
2873a94
Still trying to get audio to change5
Browse files
app.py
CHANGED
@@ -27,7 +27,6 @@ converter = BaseLoader(
|
|
27 |
|
28 |
model = "test.pth"
|
29 |
index = "added_IVF839_Flat_nprobe_1_test_v2.index"
|
30 |
-
output_file = ""
|
31 |
|
32 |
|
33 |
def voice_conversion(
|
@@ -51,9 +50,8 @@ def voice_conversion(
|
|
51 |
consonant_breath_protection,
|
52 |
)
|
53 |
print(audio_out)
|
54 |
-
output_file =
|
55 |
-
|
56 |
-
return (sr, output_audio)
|
57 |
|
58 |
|
59 |
def convert_now(audio_files, random_tag):
|
@@ -71,8 +69,6 @@ def run(
|
|
71 |
e_r,
|
72 |
c_b_p,
|
73 |
):
|
74 |
-
if os.path.exists(output_file):
|
75 |
-
os.remove(output_file)
|
76 |
random_tag = "USER_" + str(random.randint(10000000, 99999999))
|
77 |
print("PITCH LVL: ", pitch_lvl)
|
78 |
converter.apply_conf(
|
|
|
27 |
|
28 |
model = "test.pth"
|
29 |
index = "added_IVF839_Flat_nprobe_1_test_v2.index"
|
|
|
30 |
|
31 |
|
32 |
def voice_conversion(
|
|
|
50 |
consonant_breath_protection,
|
51 |
)
|
52 |
print(audio_out)
|
53 |
+
# output_audio, sr = sf.read(output_file, dtype="int32")
|
54 |
+
return audio_out
|
|
|
55 |
|
56 |
|
57 |
def convert_now(audio_files, random_tag):
|
|
|
69 |
e_r,
|
70 |
c_b_p,
|
71 |
):
|
|
|
|
|
72 |
random_tag = "USER_" + str(random.randint(10000000, 99999999))
|
73 |
print("PITCH LVL: ", pitch_lvl)
|
74 |
converter.apply_conf(
|