Spaces:
Configuration error
Configuration error
Merge pull request #77 from AWAS666/main
Browse files- gradio_app.py +14 -0
gradio_app.py
CHANGED
@@ -401,6 +401,11 @@ def parse_speechtypes_text(gen_text):
|
|
401 |
|
402 |
return segments
|
403 |
|
|
|
|
|
|
|
|
|
|
|
404 |
with gr.Blocks() as app:
|
405 |
gr.Markdown(
|
406 |
"""
|
@@ -441,6 +446,15 @@ If you're having issues, try converting your reference audio to WAV or MP3, clip
|
|
441 |
info="Enter custom words to split on, separated by commas. Leave blank to use default list.",
|
442 |
lines=2,
|
443 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
444 |
|
445 |
audio_output = gr.Audio(label="Synthesized Audio")
|
446 |
spectrogram_output = gr.Image(label="Spectrogram")
|
|
|
401 |
|
402 |
return segments
|
403 |
|
404 |
+
def update_speed(new_speed):
|
405 |
+
global speed
|
406 |
+
speed = new_speed
|
407 |
+
return f"Speed set to: {speed}"
|
408 |
+
|
409 |
with gr.Blocks() as app:
|
410 |
gr.Markdown(
|
411 |
"""
|
|
|
446 |
info="Enter custom words to split on, separated by commas. Leave blank to use default list.",
|
447 |
lines=2,
|
448 |
)
|
449 |
+
speed_slider = gr.Slider(
|
450 |
+
label="Speed",
|
451 |
+
minimum=0.3,
|
452 |
+
maximum=2.0,
|
453 |
+
value=speed,
|
454 |
+
step=0.1,
|
455 |
+
info="Adjust the speed of the audio.",
|
456 |
+
)
|
457 |
+
speed_slider.change(update_speed, inputs=speed_slider)
|
458 |
|
459 |
audio_output = gr.Audio(label="Synthesized Audio")
|
460 |
spectrogram_output = gr.Image(label="Spectrogram")
|