Introducing Gradio ClientsJoin us on Thursday, 9am PST
LivestreamIntroducing Gradio ClientsJoin us on Thursday, 9am PST
LivestreamNew to Gradio? Start here: Getting Started
See the Release History
To install Gradio from main, run the following command:
pip install https://gradio-builds.s3.amazonaws.com/99f328d4be5f196d643e66f27687bdba6a3f15b5/gradio-4.33.0-py3-none-any.whl
*Note: Setting share=True
in
launch()
will not work.
gradio.make_waveform(ยทยทยท)
gr.Video
component.Parameter | Description |
---|---|
audio str | tuple[int, np.ndarray] required | Audio file path or tuple of (sample_rate, audio_data) |
bg_color str default: "#f3f4f6" | Background color of waveform (ignored if bg_image is provided) |
bg_image str | None default: None | Background image of waveform |
fg_alpha float default: 0.75 | Opacity of foreground waveform |
bars_color str | tuple[str, str] default: ('#fbbf24', '#ea580c') | Color of waveform bars. Can be a single color or a tuple of (start_color, end_color) of gradient |
bar_count int default: 50 | Number of bars in waveform |
bar_width float default: 0.6 | Width of bars in waveform. 1 represents full width, 0.5 represents half width, etc. |
animate bool default: False | If true, the audio waveform overlay will be animated, if false, it will be static. |