Spaces:
Running
on
L4
Running
on
L4
wanglamao
commited on
Commit
·
8220abd
1
Parent(s):
15197ca
stt调到最后
Browse files
app.py
CHANGED
|
@@ -110,13 +110,6 @@ with gr.Blocks(title="General Purpose Audio System", theme=theme) as demo:
|
|
| 110 |
gr.Markdown("STT, TTS, and VC full-feature demo interface based on GPAEngine.")
|
| 111 |
|
| 112 |
with gr.Tabs():
|
| 113 |
-
# --- STT Tab ---
|
| 114 |
-
with gr.TabItem("🎙️ Speech to Text (STT)"):
|
| 115 |
-
with gr.Row():
|
| 116 |
-
stt_input = gr.Audio(label="Input Audio", type="filepath")
|
| 117 |
-
stt_output = gr.Textbox(label="Recognition Result", placeholder="Recognition result will be displayed here in real-time...", lines=5)
|
| 118 |
-
stt_btn = gr.Button("Start Recognition", variant="primary")
|
| 119 |
-
stt_btn.click(process_stt, inputs=stt_input, outputs=stt_output)
|
| 120 |
|
| 121 |
# --- TTS-A Tab ---
|
| 122 |
with gr.TabItem("👤 Text to Speech (TTS)"):
|
|
@@ -138,6 +131,17 @@ with gr.Blocks(title="General Purpose Audio System", theme=theme) as demo:
|
|
| 138 |
vc_btn = gr.Button("Start Conversion", variant="primary")
|
| 139 |
vc_btn.click(process_vc, inputs=[vc_src, vc_ref], outputs=vc_output)
|
| 140 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 141 |
|
| 142 |
def parse_args():
|
| 143 |
parser = argparse.ArgumentParser(description="GPA Audio System GUI")
|
|
|
|
| 110 |
gr.Markdown("STT, TTS, and VC full-feature demo interface based on GPAEngine.")
|
| 111 |
|
| 112 |
with gr.Tabs():
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 113 |
|
| 114 |
# --- TTS-A Tab ---
|
| 115 |
with gr.TabItem("👤 Text to Speech (TTS)"):
|
|
|
|
| 131 |
vc_btn = gr.Button("Start Conversion", variant="primary")
|
| 132 |
vc_btn.click(process_vc, inputs=[vc_src, vc_ref], outputs=vc_output)
|
| 133 |
|
| 134 |
+
# --- STT Tab ---
|
| 135 |
+
with gr.TabItem("🎙️ Speech to Text (STT)"):
|
| 136 |
+
with gr.Row():
|
| 137 |
+
stt_input = gr.Audio(label="Input Audio", type="filepath")
|
| 138 |
+
stt_output = gr.Textbox(
|
| 139 |
+
label="Recognition Result",
|
| 140 |
+
placeholder="Recognition result will be displayed here in real-time...",
|
| 141 |
+
lines=5,
|
| 142 |
+
)
|
| 143 |
+
stt_btn = gr.Button("Start Recognition", variant="primary")
|
| 144 |
+
stt_btn.click(process_stt, inputs=stt_input, outputs=stt_output)
|
| 145 |
|
| 146 |
def parse_args():
|
| 147 |
parser = argparse.ArgumentParser(description="GPA Audio System GUI")
|