File size: 269 Bytes
7c9135a
 
 
 
 
 
 
 
f0781d7
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.inputs.Audio(source="microphone", type="numpy", label="Speak here...")
gr.Interface(reverse_audio, mic, "audio", examples="audio").launch()