mic_test / test.py
chibop's picture
Upload folder using huggingface_hub
4e34ae0 verified
raw
history blame
437 Bytes
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