๐ audio: str | tuple[int, np.ndarray]
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.