Korakoe commited on
Commit
af1c972
1 Parent(s): 502302d

Ignore vocos for now

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -199,9 +199,9 @@ def generate(audio_path, ins, speed, alpha, beta, embedding, steps=100, vocos=Fa
199
  synthaud, s_prev = other_tts.long_inference_segment(i, diffusion_steps=steps,
200
  alpha=alpha, beta=beta, is_phonemes=True,
201
  embedding_scale=embedding, prev_s=s_prev, ref_s=ref_s,
202
- speed=speed, t=0.7, vocos=vocos)
203
 
204
- n_trim = int(len(synthaud) * 0.008) # 960 samples
205
  synthaud[:n_trim] = 0
206
  synthaud[-n_trim:] = 0
207
  audio = np.concatenate((audio, synthaud))
 
199
  synthaud, s_prev = other_tts.long_inference_segment(i, diffusion_steps=steps,
200
  alpha=alpha, beta=beta, is_phonemes=True,
201
  embedding_scale=embedding, prev_s=s_prev, ref_s=ref_s,
202
+ speed=speed, t=0.8)
203
 
204
+ n_trim = int(len(synthaud) * 0.009)
205
  synthaud[:n_trim] = 0
206
  synthaud[-n_trim:] = 0
207
  audio = np.concatenate((audio, synthaud))