import gradio as gr def result(data): pass demo = gr.Interface( result, gr.Audio(sources=["microphone"]), "playable_video", ) demo.launch()