import gradio as gr def dem(audio): print(type(audio)) return audio demo = gr.Interface( dem, inputs="microphone", outputs="audio", ) demo.launch()