File size: 284 Bytes
7c9135a
 
 
 
 
 
 
24e9dae
01830db
1
2
3
4
5
6
7
8
9
import numpy as np
import gradio as gr

def reverse_audio(audio):
    sr, data = audio
    return (sr, np.flipud(data))

mic = gr.Audio(source="microphone", type="numpy", label="Speak here...")
gr.Interface(reverse_audio, mic, "audio", css=".footer{display:none !important}").launch()