Omnibus commited on
Commit
8ba3782
1 Parent(s): fb7aeae

Update vc.py

Browse files
Files changed (1) hide show
  1. vc.py +1 -1
vc.py CHANGED
@@ -13,7 +13,7 @@ device = "cuda" if torch.cuda.is_available() else "cpu"
13
  def custom_bark(inp, in_aud=None, trim_aud=None, in_aud_mic=None):
14
  if in_aud_mic != None:
15
  speaker_wav=in_aud_mic
16
- if in_aud !=None:
17
  speaker_wav=Path(f"{uid}-tmp_aud.mp4")
18
  if trim_aud != None:
19
  speaker_wav=Path(f"{uid}-trim.wav")
 
13
  def custom_bark(inp, in_aud=None, trim_aud=None, in_aud_mic=None):
14
  if in_aud_mic != None:
15
  speaker_wav=in_aud_mic
16
+ if in_aud !=None and trim_aud==None:
17
  speaker_wav=Path(f"{uid}-tmp_aud.mp4")
18
  if trim_aud != None:
19
  speaker_wav=Path(f"{uid}-trim.wav")