Spaces:
Runtime error
Runtime error
Update vc.py
Browse files
vc.py
CHANGED
@@ -44,7 +44,8 @@ def trim_clip(clip, start_t, end_t):
|
|
44 |
|
45 |
return f"{uid}-trim.wav"
|
46 |
def pre_aud(inp):
|
47 |
-
|
|
|
48 |
song.export(f"{uid}-tmp_aud.mp4", format="mp4")
|
49 |
print(f'pre_aud:: {f"{uid}-tmp_aud.mp4"}')
|
50 |
return f"{uid}-tmp_aud.mp4"
|
|
|
44 |
|
45 |
return f"{uid}-trim.wav"
|
46 |
def pre_aud(inp):
|
47 |
+
print(Path(inp))
|
48 |
+
song = AudioSegment.from_file(Path(f'{inp}'), format="mp4")
|
49 |
song.export(f"{uid}-tmp_aud.mp4", format="mp4")
|
50 |
print(f'pre_aud:: {f"{uid}-tmp_aud.mp4"}')
|
51 |
return f"{uid}-tmp_aud.mp4"
|