Spaces:
Running
on
Zero
Running
on
Zero
Commit
·
04c6dbe
1
Parent(s):
89f4303
fix: add waveform options with sample rate to microphone input for improved audio visualization
Browse files
app.py
CHANGED
@@ -206,7 +206,10 @@ with gr.Blocks(title="Real-time Speech-to-Text with NeMo") as demo:
|
|
206 |
sources=["microphone"],
|
207 |
type="numpy",
|
208 |
streaming=True,
|
209 |
-
label="Speak into your microphone"
|
|
|
|
|
|
|
210 |
)
|
211 |
|
212 |
clear_btn = gr.Button("Clear Transcript", variant="secondary")
|
|
|
206 |
sources=["microphone"],
|
207 |
type="numpy",
|
208 |
streaming=True,
|
209 |
+
label="Speak into your microphone",
|
210 |
+
waveform_options=gr.WaveformOptions(
|
211 |
+
sample_rate=16000
|
212 |
+
)
|
213 |
)
|
214 |
|
215 |
clear_btn = gr.Button("Clear Transcript", variant="secondary")
|