Spaces:
Running
on
Zero
Running
on
Zero
Ignore vocos for now
Browse files
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.
|
203 |
|
204 |
-
n_trim = int(len(synthaud) * 0.
|
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))
|