V5.0
Browse files
app.py
CHANGED
|
@@ -178,7 +178,13 @@ with gr.Blocks(title="भारतीय भाषा स्पीच टू ट
|
|
| 178 |
type="numpy",
|
| 179 |
label="🎤 रिकॉर्ड करने के लिए क्लिक करें",
|
| 180 |
show_download_button=False,
|
| 181 |
-
interactive=True
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 182 |
)
|
| 183 |
|
| 184 |
with gr.Row():
|
|
@@ -201,6 +207,13 @@ with gr.Blocks(title="भारतीय भाषा स्पीच टू ट
|
|
| 201 |
outputs=mic_output
|
| 202 |
)
|
| 203 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 204 |
clear_mic_btn.click(
|
| 205 |
lambda: (None, ""),
|
| 206 |
outputs=[microphone_input, mic_output]
|
|
|
|
| 178 |
type="numpy",
|
| 179 |
label="🎤 रिकॉर्ड करने के लिए क्लिक करें",
|
| 180 |
show_download_button=False,
|
| 181 |
+
interactive=True,
|
| 182 |
+
streaming=False,
|
| 183 |
+
autoplay=False,
|
| 184 |
+
show_label=True,
|
| 185 |
+
container=True,
|
| 186 |
+
scale=None,
|
| 187 |
+
min_width=160
|
| 188 |
)
|
| 189 |
|
| 190 |
with gr.Row():
|
|
|
|
| 207 |
outputs=mic_output
|
| 208 |
)
|
| 209 |
|
| 210 |
+
# Auto-transcribe when audio is recorded
|
| 211 |
+
microphone_input.stop_recording(
|
| 212 |
+
fn=transcribe_microphone,
|
| 213 |
+
inputs=[microphone_input, language_dropdown, decoding_method],
|
| 214 |
+
outputs=mic_output
|
| 215 |
+
)
|
| 216 |
+
|
| 217 |
clear_mic_btn.click(
|
| 218 |
lambda: (None, ""),
|
| 219 |
outputs=[microphone_input, mic_output]
|