Omnibus commited on
Commit
d10cfe4
1 Parent(s): 9ffc810

Update vc.py

Browse files
Files changed (1) hide show
  1. vc.py +3 -3
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
- #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():
 
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():