Spaces:
Sleeping
Sleeping
Update vc.py
Browse files
vc.py
CHANGED
@@ -46,9 +46,9 @@ def trim_clip(clip, start_t, end_t):
|
|
46 |
return f"{uid}-trim.wav"
|
47 |
def pre_aud(inp):
|
48 |
print(inp)
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
return inp
|
53 |
with gr.Blocks() as app:
|
54 |
with gr.Group():
|
|
|
46 |
return f"{uid}-trim.wav"
|
47 |
def pre_aud(inp):
|
48 |
print(inp)
|
49 |
+
song = AudioSegment.from_file(Path(f'{inp}'), format="mp4")
|
50 |
+
song.export(f"{uid}-tmp_aud.mp4", format="mp4")
|
51 |
+
print(f'pre_aud:: {f"{uid}-tmp_aud.mp4"}')
|
52 |
return inp
|
53 |
with gr.Blocks() as app:
|
54 |
with gr.Group():
|