Spaces:
Runtime error
Runtime error
Jankidepala
commited on
Commit
•
818f95f
1
Parent(s):
c9ef35c
Create audio-recognition-input.py
Browse files
audio-recognition-input.py
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import numpy as np
|
2 |
+
import gradio as gr
|
3 |
+
|
4 |
+
def reverse_audio(audio):
|
5 |
+
sr, data = audio
|
6 |
+
return (sr, np.flipud(data))
|
7 |
+
|
8 |
+
mic = gr.Audio(source="microphone", type="numpy", label="Speak here...")
|
9 |
+
gr.Interface(reverse_audio, mic, "audio", css=".footer{display:none !important}").launch()
|