Spaces:
Runtime error
Runtime error
ver 1.9.4
Browse files
app.py
CHANGED
@@ -189,6 +189,7 @@ def generate_audio_with_pause(srt_file_path):
|
|
189 |
if desired_duration < current_duration:
|
190 |
speedup_factor = current_duration / desired_duration
|
191 |
audio_data = librosa.effects.time_stretch(y=audio_data, rate=speedup_factor)
|
|
|
192 |
|
193 |
audio_clips.append(audio_data)
|
194 |
|
|
|
189 |
if desired_duration < current_duration:
|
190 |
speedup_factor = current_duration / desired_duration
|
191 |
audio_data = librosa.effects.time_stretch(y=audio_data, rate=speedup_factor)
|
192 |
+
audio_data / np.max(np.abs(audio_data))
|
193 |
|
194 |
audio_clips.append(audio_data)
|
195 |
|