Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -341,7 +341,7 @@ def transcribe_audio(audio_path):
|
|
341 |
# === TTS Tab ===
|
342 |
tts = TTS(model_name="tts_models/en/ljspeech/tacotron2-DDC", progress_bar=False)
|
343 |
|
344 |
-
def
|
345 |
out_path = os.path.join(tempfile.gettempdir(), "tts_output.wav")
|
346 |
tts.tts_to_file(text=text, file_path=out_path)
|
347 |
return out_path
|
@@ -554,7 +554,7 @@ with gr.Blocks(title="AI Audio Studio", css="style.css") as demo:
|
|
554 |
"Stage Mode"
|
555 |
]),
|
556 |
gr.Checkbox(label="Isolate Vocals After Effects"),
|
557 |
-
gr.Dropdown(choices=preset_names, label="Select Vocal Preset", value=
|
558 |
gr.Dropdown(choices=["MP3", "WAV"], label="Export Format", value="MP3")
|
559 |
],
|
560 |
outputs=[
|
@@ -679,7 +679,7 @@ with gr.Blocks(title="AI Audio Studio", css="style.css") as demo:
|
|
679 |
)
|
680 |
|
681 |
# --- Mix Two Tracks ===
|
682 |
-
with gr.Tab("
|
683 |
gr.Interface(
|
684 |
fn=mix_tracks,
|
685 |
inputs=[
|
|
|
341 |
# === TTS Tab ===
|
342 |
tts = TTS(model_name="tts_models/en/ljspeech/tacotron2-DDC", progress_bar=False)
|
343 |
|
344 |
+
def generate_tts(text):
|
345 |
out_path = os.path.join(tempfile.gettempdir(), "tts_output.wav")
|
346 |
tts.tts_to_file(text=text, file_path=out_path)
|
347 |
return out_path
|
|
|
554 |
"Stage Mode"
|
555 |
]),
|
556 |
gr.Checkbox(label="Isolate Vocals After Effects"),
|
557 |
+
gr.Dropdown(choices=preset_names, label="Select Vocal Preset", value=preset_names[0] if preset_names else None),
|
558 |
gr.Dropdown(choices=["MP3", "WAV"], label="Export Format", value="MP3")
|
559 |
],
|
560 |
outputs=[
|
|
|
679 |
)
|
680 |
|
681 |
# --- Mix Two Tracks ===
|
682 |
+
with gr.Tab("🔀 Mix Two Tracks"):
|
683 |
gr.Interface(
|
684 |
fn=mix_tracks,
|
685 |
inputs=[
|