Spaces:
Runtime error
Runtime error
Back to 2x :)
Browse files
app.py
CHANGED
@@ -124,7 +124,7 @@ def greet(Text,Voicetoclone,VoiceMicrophone):
|
|
124 |
else:
|
125 |
os.system('ffmpeg-normalize $sample -nt rms -t=-27 -o $sample -ar 16000 -f')
|
126 |
reference_emb = SE_speaker_manager.compute_d_vector_from_clip(reference_files)
|
127 |
-
model.length_scale =
|
128 |
model.inference_noise_scale = 0.3 # defines the noise variance applied to the random z vector at inference.
|
129 |
model.inference_noise_scale_dp = 0.3 # defines the noise variance applied to the duration predictor z vector at inference.
|
130 |
text = text
|
|
|
124 |
else:
|
125 |
os.system('ffmpeg-normalize $sample -nt rms -t=-27 -o $sample -ar 16000 -f')
|
126 |
reference_emb = SE_speaker_manager.compute_d_vector_from_clip(reference_files)
|
127 |
+
model.length_scale = 2 # scaler for the duration predictor. The larger it is, the slower the speech.
|
128 |
model.inference_noise_scale = 0.3 # defines the noise variance applied to the random z vector at inference.
|
129 |
model.inference_noise_scale_dp = 0.3 # defines the noise variance applied to the duration predictor z vector at inference.
|
130 |
text = text
|