#!/usr/bin/env python import gradio as gr with gr.Blocks() as demo: audio = gr.Audio(source="microphone", type="filepath") demo.queue().launch()