Jankidepala commited on
Commit
818f95f
1 Parent(s): c9ef35c

Create audio-recognition-input.py

Browse files
Files changed (1) hide show
  1. audio-recognition-input.py +9 -0
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()