File size: 437 Bytes
31f32e6
 
 
 
a89ac0c
4e34ae0
 
6a68038
31f32e6
4e34ae0
1
2
3
4
5
6
7
8
9
10
11
import gradio as gr

with gr.Blocks(title="Mic Test") as demo:
	src = "https://onj.me/shorts/audio/02-Who%27s%20the%20bossa%21.mp3"
	gr.HTML(f"<audio src='{src}' autoplay controls></audio>", visible=True)
	mic = gr.Microphone(editable=False, waveform_options={"show_controls":False})
	mic.stop_recording(None, mic, None)

demo.launch()
#server_name="0.0.0.0", ssl_certfile="host.cert", ssl_keyfile="host.key", ssl_verify=False