nakas commited on
Commit
d10ce51
1 Parent(s): 9549644

Update utils.py

Browse files
Files changed (1) hide show
  1. utils.py +3 -2
utils.py CHANGED
@@ -620,10 +620,11 @@ class Utils_functions:
620
  ),
621
  -2,
622
  )
623
-
 
624
  return (
625
  np.clip(spec, -1.0, 1.0),
626
- (self.args.sr, np.int16(abwvc * 32767.0)),
627
  )
628
 
629
  def render_gradio(self, models_ls_1, models_ls_2, models_ls_3, train=True):
 
620
  ),
621
  -2,
622
  )
623
+ output = "/tmp/outputfile.wav"
624
+ write_wav (output,self.args.sr,np.int16(abwvc * 32767.0))
625
  return (
626
  np.clip(spec, -1.0, 1.0),
627
+ output,
628
  )
629
 
630
  def render_gradio(self, models_ls_1, models_ls_2, models_ls_3, train=True):