File size: 422 Bytes
228eb99
 
22488de
 
228eb99
 
 
 
 
22488de
228eb99
22488de
 
228eb99
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import gradio as gr

def identity(audio):
    return audio

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")
        with gr.Column():
            audio_out = gr.Audio(type="filepath")

    run_button.click(fn=identity, inputs=[audio_in], outputs=[audio_out])

demo.launch()