ozipoetra commited on
Commit
c2b8ec7
·
verified ·
1 Parent(s): a67f7ad

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -107,9 +107,10 @@ def create_vc_fn(model_title, tgt_sr, net_g, vc, if_f0, version, file_index):
107
  )
108
  info = f"[{datetime.now().strftime('%Y-%m-%d %H:%M')}]: npy: {times[0]}, f0: {times[1]}s, infer: {times[2]}s"
109
  print(f"{model_title} | {info}")
110
- command = f'ffmpeg -y -i {audio_opt} -c:a libopus output/result/audio.ogg'
111
- result = subprocess.run(command.split(), stdout=subprocess.PIPE)
112
- print(result.stdout.decode())
 
113
  # print(tgt_sr, audio_opt)
114
  return info, (tgt_sr, audio_opt)
115
  except:
 
107
  )
108
  info = f"[{datetime.now().strftime('%Y-%m-%d %H:%M')}]: npy: {times[0]}, f0: {times[1]}s, infer: {times[2]}s"
109
  print(f"{model_title} | {info}")
110
+ # command = f'ffmpeg -y -i {audio_opt} -c:a libopus output/result/audio.ogg'
111
+ # result = subprocess.run(command.split(), stdout=subprocess.PIPE)
112
+ # print(result.stdout.decode())
113
+ print((tgt_sr, audio_opt))
114
  # print(tgt_sr, audio_opt)
115
  return info, (tgt_sr, audio_opt)
116
  except: