import gradio as gr def identity(input): return input with gr.Blocks() as demo: with gr.Row(): with gr.Column(): audio_in = gr.Audio(sources=["microphone"], type="filepath") run_button = gr.Button("Generate Audio", variant="primary") with gr.Column(): audio_out = gr.Audio(type="filepath", elem_id="audio_out") run_button.click(fn=identity, inputs=[audio_in], outputs=[audio_out]) demo.launch()